debian-mirror-gitlab/spec/frontend/work_items/components/app_spec.js

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

25 lines
455 B
JavaScript
Raw Normal View History

2021-12-11 22:18:48 +05:30
import { shallowMount } from '@vue/test-utils';
import App from '~/work_items/components/app.vue';
describe('Work Items Application', () => {
let wrapper;
const createComponent = () => {
wrapper = shallowMount(App, {
stubs: {
'router-view': true,
},
});
};
afterEach(() => {
wrapper.destroy();
});
it('renders a component', () => {
createComponent();
expect(wrapper.exists()).toBe(true);
});
});