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
d4789eae
Commit
d4789eae
authored
Aug 25, 2020
by
Kev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove newState from event as it's not needed
parent
86ba2909
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
ee/spec/frontend/vulnerabilities/vulnerability_spec.js
ee/spec/frontend/vulnerabilities/vulnerability_spec.js
+4
-6
No files found.
ee/spec/frontend/vulnerabilities/vulnerability_spec.js
View file @
d4789eae
...
...
@@ -63,7 +63,7 @@ describe('Vulnerability', () => {
const
findFooter
=
()
=>
wrapper
.
find
(
Footer
);
describe
(
'
default behavior
'
,
()
=>
{
it
(
'
consi
ts of header, details
and footer
'
,
()
=>
{
it
(
'
consi
sts of header, details,
and footer
'
,
()
=>
{
expect
(
findHeader
().
exists
()).
toBe
(
true
);
expect
(
findDetails
().
exists
()).
toBe
(
true
);
expect
(
findFooter
().
exists
()).
toBe
(
true
);
...
...
@@ -111,17 +111,15 @@ describe('Vulnerability', () => {
findFooter
().
vm
.
fetchDiscussions
=
fetchDiscussions
;
});
it
(
'
updates the footer notes when the vulnerbility was changed
'
,
()
=>
{
const
newState
=
'
dismissed
'
;
findHeader
().
vm
.
$emit
(
'
vulnerability-state-change
'
,
newState
);
it
(
'
updates the footer notes when the vulnerbility state was changed
'
,
()
=>
{
findHeader
().
vm
.
$emit
(
'
vulnerability-state-change
'
);
expect
(
fetchDiscussions
).
toHaveBeenCalledTimes
(
1
);
expect
(
refreshVulnerability
).
not
.
toHaveBeenCalled
();
});
it
(
'
updates the header when the footer received a state-change note
'
,
()
=>
{
find
Header
().
vm
.
$emit
(
'
vulnerability-state-change
'
,
undefined
);
find
Footer
().
vm
.
$emit
(
'
vulnerability-state-change
'
);
expect
(
fetchDiscussions
).
not
.
toHaveBeenCalled
();
expect
(
refreshVulnerability
).
toHaveBeenCalledTimes
(
1
);
...
...
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