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
d18399e4
Commit
d18399e4
authored
Nov 02, 2021
by
Tim Zallmann
Committed by
Jose Ivan Vargas
Nov 02, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated axios to 0.24
parent
55e88eaa
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
16 deletions
+14
-16
package.json
package.json
+1
-1
spec/frontend/custom_metrics/components/custom_metrics_form_fields_spec.js
...tom_metrics/components/custom_metrics_form_fields_spec.js
+4
-6
yarn.lock
yarn.lock
+9
-9
No files found.
package.json
View file @
d18399e4
...
...
@@ -104,7 +104,7 @@
"
apollo-upload-client
"
:
"
^13.0.0
"
,
"
autosize
"
:
"
^5.0.1
"
,
"
aws-sdk
"
:
"
^2.637.0
"
,
"
axios
"
:
"
^0.2
0
.0
"
,
"
axios
"
:
"
^0.2
4
.0
"
,
"
babel-loader
"
:
"
^8.2.2
"
,
"
babel-plugin-lodash
"
:
"
^3.3.4
"
,
"
bootstrap
"
:
"
4.5.3
"
,
...
...
spec/frontend/custom_metrics/components/custom_metrics_form_fields_spec.js
View file @
d18399e4
...
...
@@ -4,8 +4,6 @@ import { TEST_HOST } from 'helpers/test_constants';
import
CustomMetricsFormFields
from
'
~/custom_metrics/components/custom_metrics_form_fields.vue
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
const
{
CancelToken
}
=
axios
;
describe
(
'
custom metrics form fields component
'
,
()
=>
{
let
wrapper
;
let
mockAxios
;
...
...
@@ -116,14 +114,14 @@ describe('custom metrics form fields component', () => {
it
(
'
receives and validates a persisted value
'
,
()
=>
{
const
query
=
'
persistedQuery
'
;
const
axiosPost
=
jest
.
spyOn
(
axios
,
'
post
'
);
const
source
=
CancelToken
.
source
();
jest
.
spyOn
(
axios
,
'
post
'
);
mountComponent
({
metricPersisted
:
true
,
...
makeFormData
({
query
})
});
expect
(
axios
P
ost
).
toHaveBeenCalledWith
(
expect
(
axios
.
p
ost
).
toHaveBeenCalledWith
(
validateQueryPath
,
{
query
},
{
cancelToken
:
source
.
token
}
,
expect
.
objectContaining
({
cancelToken
:
expect
.
anything
()
})
,
);
expect
(
getNamedInput
(
queryInputName
).
value
).
toBe
(
query
);
jest
.
runAllTimers
();
...
...
yarn.lock
View file @
d18399e4
...
...
@@ -2529,12 +2529,12 @@ axios-mock-adapter@^1.15.0:
dependencies:
deep-equal "^1.0.1"
axios@^0.2
0
.0:
version "0.2
0
.0"
resolved "https://registry.yarnpkg.com/axios/-/axios-0.2
0.0.tgz#057ba30f04884694993a8cd07fa394cff11c50bd
"
integrity sha512-
ANA4rr2BDcmmAQLOKft2fufrtuvlqR+cXNNinUmvfeSNCOF98PZL+7M/v1zIdGo7OLjEA9J2gXJL+j4zGsl0b
A==
axios@^0.2
4
.0:
version "0.2
4
.0"
resolved "https://registry.yarnpkg.com/axios/-/axios-0.2
4.0.tgz#804e6fa1e4b9c5288501dd9dff56a7a0940d20d6
"
integrity sha512-
Q6cWsys88HoPgAaFAVUb0WpPk0O8iTeisR9IMqy9G8AbO4NlpVknrnQS03zzF9PGAWgO3cgletO3VjV/P7Vzt
A==
dependencies:
follow-redirects "^1.1
0.0
"
follow-redirects "^1.1
4.4
"
babel-eslint@^10.0.3:
version "10.0.3"
...
...
@@ -5605,10 +5605,10 @@ flush-write-stream@^1.0.0:
inherits "^2.0.3"
readable-stream "^2.3.6"
follow-redirects@^1.0.0, follow-redirects@^1.1
0.0
:
version "1.1
3.0
"
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.1
3.0.tgz#b42e8d93a2a7eea5ed88633676d6597bc8e384db
"
integrity sha512-
aq6gF1BEKje4a9i9+5jimNFIpq4Q1WiwBToeRK5NvZBd/TRsmW8BsJfOEGkr76TbOyPVD3OVDN910EcUNtRYEA
==
follow-redirects@^1.0.0, follow-redirects@^1.1
4.4
:
version "1.1
4.4
"
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.1
4.4.tgz#838fdf48a8bbdd79e52ee51fb1c94e3ed98b9379
"
integrity sha512-
zwGkiSXC1MUJG/qmeIFH2HBJx9u0V46QGUe3YR1fXG8bXQxq7fLj0RjLZQ5nubr9qNJUZrH+xUcwXEoXNpfS+g
==
for-in@^1.0.2:
version "1.0.2"
...
...
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