debian-mirror-gitlab/spec/frontend/diffs/components/shared/findings_drawer_spec.js

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

20 lines
532 B
JavaScript
Raw Normal View History

2023-06-20 00:43:36 +05:30
import FindingsDrawer from '~/diffs/components/shared/findings_drawer.vue';
import { shallowMountExtended } from 'helpers/vue_test_utils_helper';
import mockFinding from '../../mock_data/findings_drawer';
let wrapper;
describe('FindingsDrawer', () => {
const createWrapper = () => {
return shallowMountExtended(FindingsDrawer, {
propsData: {
drawer: mockFinding,
},
});
};
it('matches the snapshot', () => {
wrapper = createWrapper();
expect(wrapper.element).toMatchSnapshot();
});
});