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
dac4209a
Commit
dac4209a
authored
Mar 25, 2019
by
samdbeckham
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Makes tests case insensitive
.
parent
b5bec4b9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
+9
-9
ee/spec/javascripts/security_dashboard/components/security_dashboard_table_row_spec.js
...dashboard/components/security_dashboard_table_row_spec.js
+6
-6
ee/spec/javascripts/security_dashboard/components/vulnerability_count_list_spec.js
...ity_dashboard/components/vulnerability_count_list_spec.js
+1
-1
ee/spec/javascripts/security_dashboard/components/vulnerability_count_spec.js
...security_dashboard/components/vulnerability_count_spec.js
+1
-1
ee/spec/javascripts/vue_shared/security_reports/components/modal_spec.js
...ipts/vue_shared/security_reports/components/modal_spec.js
+1
-1
No files found.
ee/spec/javascripts/security_dashboard/components/security_dashboard_table_row_spec.js
View file @
dac4209a
...
@@ -52,15 +52,15 @@ describe('Security Dashboard Table Row', () => {
...
@@ -52,15 +52,15 @@ describe('Security Dashboard Table Row', () => {
});
});
it
(
'
should render the severity
'
,
()
=>
{
it
(
'
should render the severity
'
,
()
=>
{
expect
(
vm
.
$el
.
querySelectorAll
(
'
.table-mobile-content
'
)[
0
].
textContent
).
toContain
(
expect
(
props
.
vulnerability
.
severity
,
vm
.
$el
.
querySelectorAll
(
'
.table-mobile-content
'
)[
0
].
textContent
.
toLowerCase
()
,
);
)
.
toContain
(
props
.
vulnerability
.
severity
)
;
});
});
it
(
'
should render the confidence
'
,
()
=>
{
it
(
'
should render the confidence
'
,
()
=>
{
expect
(
vm
.
$el
.
querySelectorAll
(
'
.table-mobile-content
'
)[
2
].
textContent
).
toContain
(
expect
(
props
.
vulnerability
.
confidence
,
vm
.
$el
.
querySelectorAll
(
'
.table-mobile-content
'
)[
2
].
textContent
.
toLowerCase
()
,
);
)
.
toContain
(
props
.
vulnerability
.
confidence
)
;
});
});
describe
(
'
the project name
'
,
()
=>
{
describe
(
'
the project name
'
,
()
=>
{
...
...
ee/spec/javascripts/security_dashboard/components/vulnerability_count_list_spec.js
View file @
dac4209a
...
@@ -23,7 +23,7 @@ describe('Vulnerability Count List', () => {
...
@@ -23,7 +23,7 @@ describe('Vulnerability Count List', () => {
it
(
'
should fetch the counts for each severity
'
,
()
=>
{
it
(
'
should fetch the counts for each severity
'
,
()
=>
{
const
firstCount
=
vm
.
$el
.
querySelector
(
'
.js-count
'
);
const
firstCount
=
vm
.
$el
.
querySelector
(
'
.js-count
'
);
expect
(
firstCount
.
textContent
).
toContain
(
'
c
ritical
'
);
expect
(
firstCount
.
textContent
).
toContain
(
'
C
ritical
'
);
expect
(
firstCount
.
textContent
).
toContain
(
mockData
.
critical
);
expect
(
firstCount
.
textContent
).
toContain
(
mockData
.
critical
);
});
});
...
...
ee/spec/javascripts/security_dashboard/components/vulnerability_count_spec.js
View file @
dac4209a
...
@@ -21,7 +21,7 @@ describe('Vulnerability Count', () => {
...
@@ -21,7 +21,7 @@ describe('Vulnerability Count', () => {
it
(
'
should render the severity label
'
,
()
=>
{
it
(
'
should render the severity label
'
,
()
=>
{
const
header
=
vm
.
$el
.
querySelector
(
'
.vulnerability-count-header
'
);
const
header
=
vm
.
$el
.
querySelector
(
'
.vulnerability-count-header
'
);
expect
(
header
.
textContent
).
toMatch
(
props
.
severity
);
expect
(
header
.
textContent
.
toLowerCase
()
).
toMatch
(
props
.
severity
);
});
});
it
(
'
should render the count
'
,
()
=>
{
it
(
'
should render the count
'
,
()
=>
{
...
...
ee/spec/javascripts/vue_shared/security_reports/components/modal_spec.js
View file @
dac4209a
...
@@ -172,7 +172,7 @@ describe('Security Reports modal', () => {
...
@@ -172,7 +172,7 @@ describe('Security Reports modal', () => {
it
(
'
renders severity with a badge
'
,
()
=>
{
it
(
'
renders severity with a badge
'
,
()
=>
{
const
badge
=
vm
.
$el
.
querySelector
(
'
.severity-badge
'
);
const
badge
=
vm
.
$el
.
querySelector
(
'
.severity-badge
'
);
expect
(
badge
.
textContent
).
toContain
(
'
c
ritical
'
);
expect
(
badge
.
textContent
).
toContain
(
'
C
ritical
'
);
});
});
});
});
});
});
...
...
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