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
2584c5b5
Commit
2584c5b5
authored
Oct 21, 2021
by
Florie Guibert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Consolidate labels widget architecture
Fix tests
parent
9f13d025
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
spec/frontend/boards/components/sidebar/board_sidebar_labels_select_spec.js
...ds/components/sidebar/board_sidebar_labels_select_spec.js
+1
-0
spec/frontend/vue_shared/components/sidebar/labels_select_widget/labels_select_root_spec.js
...s/sidebar/labels_select_widget/labels_select_root_spec.js
+1
-1
No files found.
spec/frontend/boards/components/sidebar/board_sidebar_labels_select_spec.js
View file @
2584c5b5
...
...
@@ -105,6 +105,7 @@ describe('~/boards/components/sidebar/board_sidebar_labels_select.vue', () => {
describe
(
'
when labels are updated over existing labels
'
,
()
=>
{
const
testLabelsPayload
=
[
{
id
:
5
,
set
:
true
},
{
id
:
6
,
set
:
false
},
{
id
:
7
,
set
:
true
},
];
const
expectedLabels
=
[{
id
:
5
},
{
id
:
7
}];
...
...
spec/frontend/vue_shared/components/sidebar/labels_select_widget/labels_select_root_spec.js
View file @
2584c5b5
...
...
@@ -127,6 +127,6 @@ describe('LabelsSelectRoot', () => {
createComponent
({
config
:
{
...
mockConfig
,
iid
:
undefined
}
});
findDropdownContents
().
vm
.
$emit
(
'
setLabels
'
,
[
label
]);
expect
(
wrapper
.
emitted
(
'
updateSelectedLabels
'
)).
toEqual
([[
[
label
]
]]);
expect
(
wrapper
.
emitted
(
'
updateSelectedLabels
'
)).
toEqual
([[
{
labels
:
[
label
]
}
]]);
});
});
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