blob: bb3c0bc152626466b1df8616d7ca1446e4424946 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
import { GlEmptyState } from '@gitlab/ui';
import { mountExtended } from 'helpers/vue_test_utils_helper';
import ArchivedProjectsEmptyState from '~/groups/components/empty_states/archived_projects_empty_state.vue';
let wrapper;
const defaultProvide = {
emptyProjectsIllustration: '/assets/llustrations/empty-state/empty-projects-md.svg',
};
const createComponent = () => {
wrapper = mountExtended(ArchivedProjectsEmptyState, {
provide: defaultProvide,
});
};
describe('ArchivedProjectsEmptyState', () => {
it('renders empty state', () => {
createComponent();
expect(wrapper.findComponent(GlEmptyState).props()).toMatchObject({
title: ArchivedProjectsEmptyState.i18n.title,
svgPath: defaultProvide.emptyProjectsIllustration,
});
});
});
|