debian-mirror-gitlab/spec/frontend/snippets/components/snippet_description_view_spec.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
542 B
JavaScript
Raw Normal View History

2020-05-24 23:13:21 +05:30
import { shallowMount } from '@vue/test-utils';
2020-10-24 23:57:45 +05:30
import SnippetDescription from '~/snippets/components/snippet_description_view.vue';
2020-05-24 23:13:21 +05:30
describe('Snippet Description component', () => {
let wrapper;
const description = '<h2>The property of Thor</h2>';
function createComponent() {
wrapper = shallowMount(SnippetDescription, {
propsData: {
description,
},
});
}
beforeEach(() => {
createComponent();
});
it('matches the snapshot', () => {
expect(wrapper.element).toMatchSnapshot();
});
});