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

app_spec.js « components « work_items « frontend « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 950340854930ce2e1b7fd2f1a8772f65cb15535d (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
import { shallowMount } from '@vue/test-utils';
import App from '~/work_items/components/app.vue';

describe('Work Items Application', () => {
  let wrapper;

  const createComponent = () => {
    wrapper = shallowMount(App, {
      stubs: {
        'router-view': true,
      },
    });
  };

  afterEach(() => {
    wrapper.destroy();
  });

  it('renders a component', () => {
    createComponent();

    expect(wrapper.exists()).toBe(true);
  });
});