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
79db9720
Commit
79db9720
authored
Dec 09, 2020
by
Mark Florian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix spec suite description
parent
a8de6a62
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
spec/frontend/vue_shared/components/security_reports/__snapshots__/security_summary_spec.js.snap
...urity_reports/__snapshots__/security_summary_spec.js.snap
+5
-5
spec/frontend/vue_shared/components/security_reports/security_summary_spec.js
...ared/components/security_reports/security_summary_spec.js
+1
-1
No files found.
spec/frontend/vue_shared/components/security_reports/__snapshots__/security_summary_spec.js.snap
View file @
79db9720
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Se
verity Summary
given the message {"countMessage": "%{criticalStart}0 Critical%{criticalEnd} %{highStart}1 High%{highEnd} and %{otherStart}0 Others%{otherEnd}", "critical": 0, "high": 1, "message": "Security scanning detected %{totalStart}1%{totalEnd} potential vulnerability", "other": 0, "status": "", "total": 1} interpolates correctly 1`] = `
exports[`Se
curitySummary component
given the message {"countMessage": "%{criticalStart}0 Critical%{criticalEnd} %{highStart}1 High%{highEnd} and %{otherStart}0 Others%{otherEnd}", "critical": 0, "high": 1, "message": "Security scanning detected %{totalStart}1%{totalEnd} potential vulnerability", "other": 0, "status": "", "total": 1} interpolates correctly 1`] = `
<span>
Security scanning detected
<strong>
...
...
@@ -43,7 +43,7 @@ exports[`Severity Summary given the message {"countMessage": "%{criticalStart}0
</span>
`;
exports[`Se
verity Summary
given the message {"countMessage": "%{criticalStart}1 Critical%{criticalEnd} %{highStart}0 High%{highEnd} and %{otherStart}0 Others%{otherEnd}", "critical": 1, "high": 0, "message": "Security scanning detected %{totalStart}1%{totalEnd} potential vulnerability", "other": 0, "status": "", "total": 1} interpolates correctly 1`] = `
exports[`Se
curitySummary component
given the message {"countMessage": "%{criticalStart}1 Critical%{criticalEnd} %{highStart}0 High%{highEnd} and %{otherStart}0 Others%{otherEnd}", "critical": 1, "high": 0, "message": "Security scanning detected %{totalStart}1%{totalEnd} potential vulnerability", "other": 0, "status": "", "total": 1} interpolates correctly 1`] = `
<span>
Security scanning detected
<strong>
...
...
@@ -86,7 +86,7 @@ exports[`Severity Summary given the message {"countMessage": "%{criticalStart}1
</span>
`;
exports[`Se
verity Summary
given the message {"countMessage": "%{criticalStart}1 Critical%{criticalEnd} %{highStart}2 High%{highEnd} and %{otherStart}0 Others%{otherEnd}", "critical": 1, "high": 2, "message": "Security scanning detected %{totalStart}3%{totalEnd} potential vulnerabilities", "other": 0, "status": "", "total": 3} interpolates correctly 1`] = `
exports[`Se
curitySummary component
given the message {"countMessage": "%{criticalStart}1 Critical%{criticalEnd} %{highStart}2 High%{highEnd} and %{otherStart}0 Others%{otherEnd}", "critical": 1, "high": 2, "message": "Security scanning detected %{totalStart}3%{totalEnd} potential vulnerabilities", "other": 0, "status": "", "total": 3} interpolates correctly 1`] = `
<span>
Security scanning detected
<strong>
...
...
@@ -129,14 +129,14 @@ exports[`Severity Summary given the message {"countMessage": "%{criticalStart}1
</span>
`;
exports[`Se
verity Summary
given the message {"message": ""} interpolates correctly 1`] = `
exports[`Se
curitySummary component
given the message {"message": ""} interpolates correctly 1`] = `
<span>
<!---->
</span>
`;
exports[`Se
verity Summary
given the message {"message": "foo"} interpolates correctly 1`] = `
exports[`Se
curitySummary component
given the message {"message": "foo"} interpolates correctly 1`] = `
<span>
foo
<!---->
...
...
spec/frontend/vue_shared/components/security_reports/security_summary_spec.js
View file @
79db9720
...
...
@@ -3,7 +3,7 @@ import { shallowMount } from '@vue/test-utils';
import
SecuritySummary
from
'
~/vue_shared/security_reports/components/security_summary.vue
'
;
import
{
groupedTextBuilder
}
from
'
~/vue_shared/security_reports/store/utils
'
;
describe
(
'
Se
verity Summary
'
,
()
=>
{
describe
(
'
Se
curitySummary component
'
,
()
=>
{
let
wrapper
;
const
createWrapper
=
message
=>
{
...
...
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