Commit 3def11a6 authored by David Pisek's avatar David Pisek Committed by Savas Vedova

Apply 3 suggestion(s) to 2 file(s)

parent 5bb9f260
--- ---
title: Render text and value generic report types title: Render text and value generic report types on vulnerability report
merge_request: 61727 merge_request: 61727
author: author:
type: added type: added
...@@ -10,7 +10,7 @@ describe('ee/vulnerabilities/components/generic_report/types/value.vue', () => { ...@@ -10,7 +10,7 @@ describe('ee/vulnerabilities/components/generic_report/types/value.vue', () => {
${'number'} | ${8} | ${'8'} ${'number'} | ${8} | ${'8'}
${'boolean'} | ${true} | ${'true'} ${'boolean'} | ${true} | ${'true'}
${'boolean'} | ${false} | ${'false'} ${'boolean'} | ${false} | ${'false'}
`('with data for $card', ({ fieldType, value, printValue }) => { `('with value of type "$fieldType"', ({ fieldType, value, printValue }) => {
const createWrapper = () => { const createWrapper = () => {
return shallowMount(Text, { return shallowMount(Text, {
propsData: { propsData: {
...@@ -29,7 +29,7 @@ describe('ee/vulnerabilities/components/generic_report/types/value.vue', () => { ...@@ -29,7 +29,7 @@ describe('ee/vulnerabilities/components/generic_report/types/value.vue', () => {
wrapper.destroy(); wrapper.destroy();
}); });
it(`renders ${fieldType} type`, () => { it(`renders "${printValue}"`, () => {
expect(wrapper.text()).toBe(printValue); expect(wrapper.text()).toBe(printValue);
}); });
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment