blob: 5897b9e0ffc52af608b1eaead7bfbace527ba8f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
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' },
},
});
};
it('matches snapshot', () => {
createComponent();
expect(wrapper.element).toMatchSnapshot();
});
});
|