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
3def11a6
Commit
3def11a6
authored
May 17, 2021
by
David Pisek
Committed by
Savas Vedova
May 17, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply 3 suggestion(s) to 2 file(s)
parent
5bb9f260
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
ee/changelogs/unreleased/327382-render-value-type.yml
ee/changelogs/unreleased/327382-render-value-type.yml
+1
-1
ee/spec/frontend/vulnerabilities/generic_report/types/value_spec.js
...ontend/vulnerabilities/generic_report/types/value_spec.js
+2
-2
No files found.
ee/changelogs/unreleased/327382-render-value-type.yml
View file @
3def11a6
---
title
:
Render text and value generic report types
title
:
Render text and value generic report types
on vulnerability report
merge_request
:
61727
author
:
type
:
added
ee/spec/frontend/vulnerabilities/generic_report/types/value_spec.js
View file @
3def11a6
...
...
@@ -10,7 +10,7 @@ describe('ee/vulnerabilities/components/generic_report/types/value.vue', () => {
${
'
number
'
}
|
${
8
}
|
${
'
8
'
}
${
'
boolean
'
}
|
${
true
}
|
${
'
true
'
}
${
'
boolean
'
}
|
${
false
}
|
${
'
false
'
}
`
(
'
with
data for $card
'
,
({
fieldType
,
value
,
printValue
})
=>
{
`
(
'
with
value of type "$fieldType"
'
,
({
fieldType
,
value
,
printValue
})
=>
{
const
createWrapper
=
()
=>
{
return
shallowMount
(
Text
,
{
propsData
:
{
...
...
@@ -29,7 +29,7 @@ describe('ee/vulnerabilities/components/generic_report/types/value.vue', () => {
wrapper
.
destroy
();
});
it
(
`renders
${
fieldType
}
type
`
,
()
=>
{
it
(
`renders
"
${
printValue
}
"
`
,
()
=>
{
expect
(
wrapper
.
text
()).
toBe
(
printValue
);
});
});
...
...
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