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
77430de2
Commit
77430de2
authored
Sep 23, 2020
by
jakeburden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test coverage for milestone mutation
parent
a4e4ec2f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
spec/frontend/releases/stores/modules/detail/mutations_spec.js
...frontend/releases/stores/modules/detail/mutations_spec.js
+20
-0
No files found.
spec/frontend/releases/stores/modules/detail/mutations_spec.js
View file @
77430de2
...
@@ -113,6 +113,26 @@ describe('Release detail mutations', () => {
...
@@ -113,6 +113,26 @@ describe('Release detail mutations', () => {
});
});
});
});
describe
(
`
${
types
.
UPDATE_RELEASE_MILESTONES
}
`
,
()
=>
{
it
(
"
updates the release's milestones
"
,
()
=>
{
state
.
release
=
release
;
const
newReleaseMilestones
=
[
'
v0.0
'
,
'
v0.1
'
];
mutations
[
types
.
UPDATE_RELEASE_MILESTONES
](
state
,
newReleaseMilestones
);
expect
(
state
.
release
.
milestones
).
toBe
(
newReleaseMilestones
);
});
});
describe
(
`
${
types
.
UPDATE_RELEASE_GROUP_MILESTONES
}
`
,
()
=>
{
it
(
"
updates the release's group milestones
"
,
()
=>
{
state
.
release
=
release
;
const
newReleaseGroupMilestones
=
[
'
v0.0
'
,
'
v0.1
'
];
mutations
[
types
.
UPDATE_RELEASE_GROUP_MILESTONES
](
state
,
newReleaseGroupMilestones
);
expect
(
state
.
release
.
groupMilestones
).
toBe
(
newReleaseGroupMilestones
);
});
});
describe
(
`
${
types
.
REQUEST_SAVE_RELEASE
}
`
,
()
=>
{
describe
(
`
${
types
.
REQUEST_SAVE_RELEASE
}
`
,
()
=>
{
it
(
'
set state.isUpdatingRelease to true
'
,
()
=>
{
it
(
'
set state.isUpdatingRelease to true
'
,
()
=>
{
mutations
[
types
.
REQUEST_SAVE_RELEASE
](
state
);
mutations
[
types
.
REQUEST_SAVE_RELEASE
](
state
);
...
...
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