25 lines
686 B
JavaScript
25 lines
686 B
JavaScript
import { GlEmptyState, GlSprintf } from '@gitlab/ui';
|
|
import { shallowMount } from '@vue/test-utils';
|
|
import { createStore } from '~/serverless/store';
|
|
import EmptyStateComponent from '~/serverless/components/empty_state.vue';
|
|
|
|
describe('EmptyStateComponent', () => {
|
|
let wrapper;
|
|
|
|
beforeEach(() => {
|
|
const store = createStore({
|
|
clustersPath: '/clusters',
|
|
helpPath: '/help',
|
|
emptyImagePath: '/image.svg',
|
|
});
|
|
wrapper = shallowMount(EmptyStateComponent, { store, stubs: { GlEmptyState, GlSprintf } });
|
|
});
|
|
|
|
afterEach(() => {
|
|
wrapper.destroy();
|
|
});
|
|
|
|
it('should render content', () => {
|
|
expect(wrapper.html()).toMatchSnapshot();
|
|
});
|
|
});
|