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
13b227a9
Commit
13b227a9
authored
Jul 19, 2021
by
Tim Zallmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated Actions Spec for refetching label
parent
3995f8a6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
spec/frontend/vue_shared/components/sidebar/labels_select_vue/store/actions_spec.js
...omponents/sidebar/labels_select_vue/store/actions_spec.js
+2
-1
No files found.
spec/frontend/vue_shared/components/sidebar/labels_select_vue/store/actions_spec.js
View file @
13b227a9
...
@@ -214,7 +214,7 @@ describe('LabelsSelect Actions', () => {
...
@@ -214,7 +214,7 @@ describe('LabelsSelect Actions', () => {
});
});
describe
(
'
on success
'
,
()
=>
{
describe
(
'
on success
'
,
()
=>
{
it
(
'
dispatches `requestCreateLabel`, `receiveCreateLabelSuccess` & `toggleDropdownContentsCreateView` actions
'
,
(
done
)
=>
{
it
(
'
dispatches `requestCreateLabel`, `
fetchLabels` & `
receiveCreateLabelSuccess` & `toggleDropdownContentsCreateView` actions
'
,
(
done
)
=>
{
const
label
=
{
id
:
1
};
const
label
=
{
id
:
1
};
mock
.
onPost
(
/labels.json/
).
replyOnce
(
200
,
label
);
mock
.
onPost
(
/labels.json/
).
replyOnce
(
200
,
label
);
...
@@ -225,6 +225,7 @@ describe('LabelsSelect Actions', () => {
...
@@ -225,6 +225,7 @@ describe('LabelsSelect Actions', () => {
[],
[],
[
[
{
type
:
'
requestCreateLabel
'
},
{
type
:
'
requestCreateLabel
'
},
{
payload
:
true
,
type
:
'
fetchLabels
'
},
{
type
:
'
receiveCreateLabelSuccess
'
},
{
type
:
'
receiveCreateLabelSuccess
'
},
{
type
:
'
toggleDropdownContentsCreateView
'
},
{
type
:
'
toggleDropdownContentsCreateView
'
},
],
],
...
...
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