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
79d3de46
Commit
79d3de46
authored
May 15, 2020
by
Kushal Pandya
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dmishunov-fixing-eslint' into 'master'
Fixed ESlint check See merge request gitlab-org/gitlab!32285
parents
0b00a5e1
61484c1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
spec/frontend/releases/stores/modules/detail/mutations_spec.js
...frontend/releases/stores/modules/detail/mutations_spec.js
+12
-12
No files found.
spec/frontend/releases/stores/modules/detail/mutations_spec.js
View file @
79d3de46
...
...
@@ -20,7 +20,7 @@ describe('Release detail mutations', () => {
release
=
convertObjectPropsToCamelCase
(
originalRelease
);
});
describe
(
types
.
REQUEST_RELEASE
,
()
=>
{
describe
(
`
${
types
.
REQUEST_RELEASE
}
`
,
()
=>
{
it
(
'
set state.isFetchingRelease to true
'
,
()
=>
{
mutations
[
types
.
REQUEST_RELEASE
](
state
);
...
...
@@ -28,7 +28,7 @@ describe('Release detail mutations', () => {
});
});
describe
(
types
.
RECEIVE_RELEASE_SUCCESS
,
()
=>
{
describe
(
`
${
types
.
RECEIVE_RELEASE_SUCCESS
}
`
,
()
=>
{
it
(
'
handles a successful response from the server
'
,
()
=>
{
mutations
[
types
.
RECEIVE_RELEASE_SUCCESS
](
state
,
release
);
...
...
@@ -42,7 +42,7 @@ describe('Release detail mutations', () => {
});
});
describe
(
types
.
RECEIVE_RELEASE_ERROR
,
()
=>
{
describe
(
`
${
types
.
RECEIVE_RELEASE_ERROR
}
`
,
()
=>
{
it
(
'
handles an unsuccessful response from the server
'
,
()
=>
{
const
error
=
{
message
:
'
An error occurred!
'
};
mutations
[
types
.
RECEIVE_RELEASE_ERROR
](
state
,
error
);
...
...
@@ -55,7 +55,7 @@ describe('Release detail mutations', () => {
});
});
describe
(
types
.
UPDATE_RELEASE_TITLE
,
()
=>
{
describe
(
`
${
types
.
UPDATE_RELEASE_TITLE
}
`
,
()
=>
{
it
(
"
updates the release's title
"
,
()
=>
{
state
.
release
=
release
;
const
newTitle
=
'
The new release title
'
;
...
...
@@ -65,7 +65,7 @@ describe('Release detail mutations', () => {
});
});
describe
(
types
.
UPDATE_RELEASE_NOTES
,
()
=>
{
describe
(
`
${
types
.
UPDATE_RELEASE_NOTES
}
`
,
()
=>
{
it
(
"
updates the release's notes
"
,
()
=>
{
state
.
release
=
release
;
const
newNotes
=
'
The new release notes
'
;
...
...
@@ -75,7 +75,7 @@ describe('Release detail mutations', () => {
});
});
describe
(
types
.
REQUEST_UPDATE_RELEASE
,
()
=>
{
describe
(
`
${
types
.
REQUEST_UPDATE_RELEASE
}
`
,
()
=>
{
it
(
'
set state.isUpdatingRelease to true
'
,
()
=>
{
mutations
[
types
.
REQUEST_UPDATE_RELEASE
](
state
);
...
...
@@ -83,7 +83,7 @@ describe('Release detail mutations', () => {
});
});
describe
(
types
.
RECEIVE_UPDATE_RELEASE_SUCCESS
,
()
=>
{
describe
(
`
${
types
.
RECEIVE_UPDATE_RELEASE_SUCCESS
}
`
,
()
=>
{
it
(
'
handles a successful response from the server
'
,
()
=>
{
mutations
[
types
.
RECEIVE_UPDATE_RELEASE_SUCCESS
](
state
,
release
);
...
...
@@ -93,7 +93,7 @@ describe('Release detail mutations', () => {
});
});
describe
(
types
.
RECEIVE_UPDATE_RELEASE_ERROR
,
()
=>
{
describe
(
`
${
types
.
RECEIVE_UPDATE_RELEASE_ERROR
}
`
,
()
=>
{
it
(
'
handles an unsuccessful response from the server
'
,
()
=>
{
const
error
=
{
message
:
'
An error occurred!
'
};
mutations
[
types
.
RECEIVE_UPDATE_RELEASE_ERROR
](
state
,
error
);
...
...
@@ -104,7 +104,7 @@ describe('Release detail mutations', () => {
});
});
describe
(
types
.
ADD_EMPTY_ASSET_LINK
,
()
=>
{
describe
(
`
${
types
.
ADD_EMPTY_ASSET_LINK
}
`
,
()
=>
{
it
(
'
adds a new, empty link object to the release
'
,
()
=>
{
state
.
release
=
release
;
...
...
@@ -123,7 +123,7 @@ describe('Release detail mutations', () => {
});
});
describe
(
types
.
UPDATE_ASSET_LINK_URL
,
()
=>
{
describe
(
`
${
types
.
UPDATE_ASSET_LINK_URL
}
`
,
()
=>
{
it
(
'
updates an asset link with a new URL
'
,
()
=>
{
state
.
release
=
release
;
...
...
@@ -138,7 +138,7 @@ describe('Release detail mutations', () => {
});
});
describe
(
types
.
UPDATE_ASSET_LINK_NAME
,
()
=>
{
describe
(
`
${
types
.
UPDATE_ASSET_LINK_NAME
}
`
,
()
=>
{
it
(
'
updates an asset link with a new name
'
,
()
=>
{
state
.
release
=
release
;
...
...
@@ -153,7 +153,7 @@ describe('Release detail mutations', () => {
});
});
describe
(
types
.
REMOVE_ASSET_LINK
,
()
=>
{
describe
(
`
${
types
.
REMOVE_ASSET_LINK
}
`
,
()
=>
{
it
(
'
removes an asset link from the release
'
,
()
=>
{
state
.
release
=
release
;
...
...
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