Commit 32158b52 authored by Fernando's avatar Fernando Committed by Andrew Fontaine

Add diff component to report_items

* Add constants
* Update unit tests
* Update imports

Tweak unit tests

* Update test props

Add changelog entry for Diff component

* Add log entry

Changelog: added
EE: true
parent 0b545cbf
......@@ -3,11 +3,13 @@ import { capitalizeFirstCharacter } from '~/lib/utils/text_utility';
export const REPORT_TYPES = {
list: 'list',
url: 'url',
diff: 'diff',
};
const REPORT_TYPE_TO_COMPONENT_MAP = {
[REPORT_TYPES.list]: () => import('./list.vue'),
[REPORT_TYPES.url]: () => import('./url.vue'),
[REPORT_TYPES.diff]: () => import('./diff.vue'),
};
export const getComponentNameForType = (reportType) =>
......
---
title: Add diff component to generic report schemas
merge_request: 60188
author:
type: added
......@@ -13,6 +13,10 @@ const TEST_DATA = {
[REPORT_TYPES.list]: {
items: [],
},
[REPORT_TYPES.diff]: {
before: 'foo',
after: 'bar',
},
};
describe('ee/vulnerabilities/components/generic_report/report_item.vue', () => {
......
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