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

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

describe('Placeholder system note component', () => {
  let wrapper;

  const createComponent = () => {
    wrapper = shallowMount(PlaceholderSystemNote, {
      propsData: {
        note: { body: 'This is a placeholder' },
      },
    });
  };

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

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

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