debian-mirror-gitlab/spec/frontend/vue_shared/components/notes/placeholder_system_note_spec.js
2020-03-13 15:44:24 +05:30

25 lines
575 B
JavaScript

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