Welcome to mirror list, hosted at ThFree Co, Russian Federation.

empty_state_spec.js « components « serverless « frontend « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d63882c2a6d21127f7b718b4475bbd1fedf5e638 (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
import { GlEmptyState, GlSprintf } from '@gitlab/ui';
import { shallowMount } from '@vue/test-utils';
import EmptyStateComponent from '~/serverless/components/empty_state.vue';
import { createStore } from '~/serverless/store';

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();
  });
});