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
059af27a
Commit
059af27a
authored
Nov 05, 2021
by
Dave Pisek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reviewer feedback: Spec improvement
parent
31c993cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
ee/spec/frontend/security_dashboard/components/shared/vulnerabilities_over_time_chart_spec.js
...components/shared/vulnerabilities_over_time_chart_spec.js
+5
-3
No files found.
ee/spec/frontend/security_dashboard/components/shared/vulnerabilities_over_time_chart_spec.js
View file @
059af27a
...
...
@@ -77,12 +77,14 @@ describe('Vulnerabilities Over Time Chart Component', () => {
});
it
(
'
should change the actively selected chart button and refetch the new data
'
,
async
()
=>
{
expect
(
findChartButtons
().
props
(
'
activeDay
'
)).
toBe
(
30
);
findChartButtons
().
vm
.
$emit
(
'
days-selected
'
,
90
);
const
chartButtons
=
findChartButtons
();
expect
(
chartButtons
.
props
(
'
activeDay
'
)).
toBe
(
30
);
chartButtons
.
vm
.
$emit
(
'
days-selected
'
,
90
);
await
nextTick
();
expect
(
findChartButtons
()
.
props
(
'
activeDay
'
)).
toBe
(
90
);
expect
(
chartButtons
.
props
(
'
activeDay
'
)).
toBe
(
90
);
expect
(
wrapper
.
vm
.
$apollo
.
queries
.
vulnerabilitiesHistory
.
refetch
).
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