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

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

import GroupItemName from '~/jira_connect/components/group_item_name.vue';
import { mockGroup1 } from '../mock_data';

describe('GroupItemName', () => {
  let wrapper;

  const createComponent = () => {
    wrapper = shallowMount(GroupItemName, {
      propsData: {
        group: mockGroup1,
      },
    });
  };

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

  describe('template', () => {
    it('matches the snapshot', () => {
      createComponent();

      expect(wrapper.element).toMatchSnapshot();
    });
  });
});