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
a3f59b1f
Commit
a3f59b1f
authored
May 05, 2020
by
Vitaly Slobodin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable several eslint complains
parent
361cf377
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
19 deletions
+4
-19
spec/frontend/helpers/class_spec_helper.js
spec/frontend/helpers/class_spec_helper.js
+1
-0
spec/frontend/lib/utils/axios_utils_spec.js
spec/frontend/lib/utils/axios_utils_spec.js
+1
-0
spec/frontend/releases/stores/modules/detail/mutations_spec.js
...frontend/releases/stores/modules/detail/mutations_spec.js
+0
-12
spec/frontend/vue_shared/components/date_time_picker/date_time_picker_lib_spec.js
.../components/date_time_picker/date_time_picker_lib_spec.js
+2
-7
No files found.
spec/frontend/helpers/class_spec_helper.js
View file @
a3f59b1f
// eslint-disable-next-line jest/no-export
export
default
class
ClassSpecHelper
{
export
default
class
ClassSpecHelper
{
static
itShouldBeAStaticMethod
(
base
,
method
)
{
static
itShouldBeAStaticMethod
(
base
,
method
)
{
return
it
(
'
should be a static method
'
,
()
=>
{
return
it
(
'
should be a static method
'
,
()
=>
{
...
...
spec/frontend/lib/utils/axios_utils_spec.js
View file @
a3f59b1f
...
@@ -11,6 +11,7 @@ describe('axios_utils', () => {
...
@@ -11,6 +11,7 @@ describe('axios_utils', () => {
mock
=
new
AxiosMockAdapter
(
axios
);
mock
=
new
AxiosMockAdapter
(
axios
);
mock
.
onAny
(
'
/ok
'
).
reply
(
200
);
mock
.
onAny
(
'
/ok
'
).
reply
(
200
);
mock
.
onAny
(
'
/err
'
).
reply
(
500
);
mock
.
onAny
(
'
/err
'
).
reply
(
500
);
// eslint-disable-next-line jest/no-standalone-expect
expect
(
axios
.
countActiveRequests
()).
toBe
(
0
);
expect
(
axios
.
countActiveRequests
()).
toBe
(
0
);
});
});
...
...
spec/frontend/releases/stores/modules/detail/mutations_spec.js
View file @
a3f59b1f
...
@@ -20,7 +20,6 @@ describe('Release detail mutations', () => {
...
@@ -20,7 +20,6 @@ describe('Release detail mutations', () => {
release
=
convertObjectPropsToCamelCase
(
originalRelease
);
release
=
convertObjectPropsToCamelCase
(
originalRelease
);
});
});
// eslint-disable-next-line jest/valid-describe
describe
(
types
.
REQUEST_RELEASE
,
()
=>
{
describe
(
types
.
REQUEST_RELEASE
,
()
=>
{
it
(
'
set state.isFetchingRelease to true
'
,
()
=>
{
it
(
'
set state.isFetchingRelease to true
'
,
()
=>
{
mutations
[
types
.
REQUEST_RELEASE
](
state
);
mutations
[
types
.
REQUEST_RELEASE
](
state
);
...
@@ -29,7 +28,6 @@ describe('Release detail mutations', () => {
...
@@ -29,7 +28,6 @@ describe('Release detail mutations', () => {
});
});
});
});
// eslint-disable-next-line jest/valid-describe
describe
(
types
.
RECEIVE_RELEASE_SUCCESS
,
()
=>
{
describe
(
types
.
RECEIVE_RELEASE_SUCCESS
,
()
=>
{
it
(
'
handles a successful response from the server
'
,
()
=>
{
it
(
'
handles a successful response from the server
'
,
()
=>
{
mutations
[
types
.
RECEIVE_RELEASE_SUCCESS
](
state
,
release
);
mutations
[
types
.
RECEIVE_RELEASE_SUCCESS
](
state
,
release
);
...
@@ -44,7 +42,6 @@ describe('Release detail mutations', () => {
...
@@ -44,7 +42,6 @@ describe('Release detail mutations', () => {
});
});
});
});
// eslint-disable-next-line jest/valid-describe
describe
(
types
.
RECEIVE_RELEASE_ERROR
,
()
=>
{
describe
(
types
.
RECEIVE_RELEASE_ERROR
,
()
=>
{
it
(
'
handles an unsuccessful response from the server
'
,
()
=>
{
it
(
'
handles an unsuccessful response from the server
'
,
()
=>
{
const
error
=
{
message
:
'
An error occurred!
'
};
const
error
=
{
message
:
'
An error occurred!
'
};
...
@@ -58,7 +55,6 @@ describe('Release detail mutations', () => {
...
@@ -58,7 +55,6 @@ describe('Release detail mutations', () => {
});
});
});
});
// eslint-disable-next-line jest/valid-describe
describe
(
types
.
UPDATE_RELEASE_TITLE
,
()
=>
{
describe
(
types
.
UPDATE_RELEASE_TITLE
,
()
=>
{
it
(
"
updates the release's title
"
,
()
=>
{
it
(
"
updates the release's title
"
,
()
=>
{
state
.
release
=
release
;
state
.
release
=
release
;
...
@@ -69,7 +65,6 @@ describe('Release detail mutations', () => {
...
@@ -69,7 +65,6 @@ describe('Release detail mutations', () => {
});
});
});
});
// eslint-disable-next-line jest/valid-describe
describe
(
types
.
UPDATE_RELEASE_NOTES
,
()
=>
{
describe
(
types
.
UPDATE_RELEASE_NOTES
,
()
=>
{
it
(
"
updates the release's notes
"
,
()
=>
{
it
(
"
updates the release's notes
"
,
()
=>
{
state
.
release
=
release
;
state
.
release
=
release
;
...
@@ -80,7 +75,6 @@ describe('Release detail mutations', () => {
...
@@ -80,7 +75,6 @@ describe('Release detail mutations', () => {
});
});
});
});
// eslint-disable-next-line jest/valid-describe
describe
(
types
.
REQUEST_UPDATE_RELEASE
,
()
=>
{
describe
(
types
.
REQUEST_UPDATE_RELEASE
,
()
=>
{
it
(
'
set state.isUpdatingRelease to true
'
,
()
=>
{
it
(
'
set state.isUpdatingRelease to true
'
,
()
=>
{
mutations
[
types
.
REQUEST_UPDATE_RELEASE
](
state
);
mutations
[
types
.
REQUEST_UPDATE_RELEASE
](
state
);
...
@@ -89,7 +83,6 @@ describe('Release detail mutations', () => {
...
@@ -89,7 +83,6 @@ describe('Release detail mutations', () => {
});
});
});
});
// eslint-disable-next-line jest/valid-describe
describe
(
types
.
RECEIVE_UPDATE_RELEASE_SUCCESS
,
()
=>
{
describe
(
types
.
RECEIVE_UPDATE_RELEASE_SUCCESS
,
()
=>
{
it
(
'
handles a successful response from the server
'
,
()
=>
{
it
(
'
handles a successful response from the server
'
,
()
=>
{
mutations
[
types
.
RECEIVE_UPDATE_RELEASE_SUCCESS
](
state
,
release
);
mutations
[
types
.
RECEIVE_UPDATE_RELEASE_SUCCESS
](
state
,
release
);
...
@@ -100,7 +93,6 @@ describe('Release detail mutations', () => {
...
@@ -100,7 +93,6 @@ describe('Release detail mutations', () => {
});
});
});
});
// eslint-disable-next-line jest/valid-describe
describe
(
types
.
RECEIVE_UPDATE_RELEASE_ERROR
,
()
=>
{
describe
(
types
.
RECEIVE_UPDATE_RELEASE_ERROR
,
()
=>
{
it
(
'
handles an unsuccessful response from the server
'
,
()
=>
{
it
(
'
handles an unsuccessful response from the server
'
,
()
=>
{
const
error
=
{
message
:
'
An error occurred!
'
};
const
error
=
{
message
:
'
An error occurred!
'
};
...
@@ -112,7 +104,6 @@ describe('Release detail mutations', () => {
...
@@ -112,7 +104,6 @@ describe('Release detail mutations', () => {
});
});
});
});
// eslint-disable-next-line jest/valid-describe
describe
(
types
.
ADD_EMPTY_ASSET_LINK
,
()
=>
{
describe
(
types
.
ADD_EMPTY_ASSET_LINK
,
()
=>
{
it
(
'
adds a new, empty link object to the release
'
,
()
=>
{
it
(
'
adds a new, empty link object to the release
'
,
()
=>
{
state
.
release
=
release
;
state
.
release
=
release
;
...
@@ -132,7 +123,6 @@ describe('Release detail mutations', () => {
...
@@ -132,7 +123,6 @@ describe('Release detail mutations', () => {
});
});
});
});
// eslint-disable-next-line jest/valid-describe
describe
(
types
.
UPDATE_ASSET_LINK_URL
,
()
=>
{
describe
(
types
.
UPDATE_ASSET_LINK_URL
,
()
=>
{
it
(
'
updates an asset link with a new URL
'
,
()
=>
{
it
(
'
updates an asset link with a new URL
'
,
()
=>
{
state
.
release
=
release
;
state
.
release
=
release
;
...
@@ -148,7 +138,6 @@ describe('Release detail mutations', () => {
...
@@ -148,7 +138,6 @@ describe('Release detail mutations', () => {
});
});
});
});
// eslint-disable-next-line jest/valid-describe
describe
(
types
.
UPDATE_ASSET_LINK_NAME
,
()
=>
{
describe
(
types
.
UPDATE_ASSET_LINK_NAME
,
()
=>
{
it
(
'
updates an asset link with a new name
'
,
()
=>
{
it
(
'
updates an asset link with a new name
'
,
()
=>
{
state
.
release
=
release
;
state
.
release
=
release
;
...
@@ -164,7 +153,6 @@ describe('Release detail mutations', () => {
...
@@ -164,7 +153,6 @@ describe('Release detail mutations', () => {
});
});
});
});
// eslint-disable-next-line jest/valid-describe
describe
(
types
.
REMOVE_ASSET_LINK
,
()
=>
{
describe
(
types
.
REMOVE_ASSET_LINK
,
()
=>
{
it
(
'
removes an asset link from the release
'
,
()
=>
{
it
(
'
removes an asset link from the release
'
,
()
=>
{
state
.
release
=
release
;
state
.
release
=
release
;
...
...
spec/frontend/vue_shared/components/date_time_picker/date_time_picker_lib_spec.js
View file @
a3f59b1f
...
@@ -56,13 +56,8 @@ describe('date time picker lib', () => {
...
@@ -56,13 +56,8 @@ describe('date time picker lib', () => {
describe
(
'
stringToISODate
'
,
()
=>
{
describe
(
'
stringToISODate
'
,
()
=>
{
[
''
,
'
null
'
,
undefined
,
'
abc
'
].
forEach
(
input
=>
{
[
''
,
'
null
'
,
undefined
,
'
abc
'
].
forEach
(
input
=>
{
it
(
`throws error for invalid input like
${
input
}
`
,
done
=>
{
it
(
`throws error for invalid input like
${
input
}
`
,
()
=>
{
try
{
expect
(()
=>
dateTimePickerLib
.
stringToISODate
(
input
)).
toThrow
();
dateTimePickerLib
.
stringToISODate
(
input
);
}
catch
(
e
)
{
expect
(
e
).
toBeDefined
();
done
();
}
});
});
});
});
[
[
...
...
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