debian-mirror-gitlab/spec/frontend/serverless/components/empty_state_spec.js

26 lines
686 B
JavaScript
Raw Normal View History

2020-10-24 23:57:45 +05:30
import { GlEmptyState, GlSprintf } from '@gitlab/ui';
import { shallowMount } from '@vue/test-utils';
import EmptyStateComponent from '~/serverless/components/empty_state.vue';
2021-03-11 19:13:27 +05:30
import { createStore } from '~/serverless/store';
2020-10-24 23:57:45 +05:30
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();
});
});