Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
69b7cd8d
Commit
69b7cd8d
authored
Jul 17, 2019
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix broken axios mock
parent
5480697e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
ee/spec/frontend/custom_metrics/components/custom_metrics_form_fields_spec.js
...tom_metrics/components/custom_metrics_form_fields_spec.js
+1
-3
No files found.
ee/spec/frontend/custom_metrics/components/custom_metrics_form_fields_spec.js
View file @
69b7cd8d
...
...
@@ -3,8 +3,6 @@ import axios from '~/lib/utils/axios_utils';
import
{
TEST_HOST
}
from
'
helpers/test_constants
'
;
import
CustomMetricsFormFields
from
'
ee/custom_metrics/components/custom_metrics_form_fields.vue
'
;
jest
.
mock
(
'
~/lib/utils/axios_utils
'
);
describe
(
'
custom metrics form fields component
'
,
()
=>
{
let
component
;
const
getNamedInput
=
name
=>
component
.
element
.
querySelector
(
`input[name="
${
name
}
"]`
);
...
...
@@ -40,7 +38,7 @@ describe('custom metrics form fields component', () => {
};
beforeEach
(()
=>
{
axios
.
post
.
mockRestore
();
jest
.
spyOn
(
axios
,
'
post
'
).
mockImplementation
();
axios
.
post
.
mockResolvedValue
(
validQueryResponse
);
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment