debian-mirror-gitlab/spec/frontend/diffs/components/shared/findings_drawer_spec.js
2023-06-20 00:43:36 +05:30

19 lines
532 B
JavaScript

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