Commit 6f803999 authored by Andrew Fontaine's avatar Andrew Fontaine

Merge branch '328706-add-diff-component-to-report-item' into 'master'

Add diff component to report_items

See merge request gitlab-org/gitlab!60188
parents 3e1346f9 32158b52
......@@ -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