blob: 1dc5376cacf3e3a86eaa4de7918b3963053c7ff0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
import { shallowMount } from '@vue/test-utils';
import component from '~/registry/explorer/pages/index.vue';
import { createStore } from '~/registry/explorer/stores/';
describe('List Page', () => {
let wrapper;
let store;
const findRouterView = () => wrapper.find({ ref: 'router-view' });
const mountComponent = () => {
wrapper = shallowMount(component, {
store,
stubs: {
RouterView: true,
},
});
};
beforeEach(() => {
store = createStore();
mountComponent();
});
it('has a router view', () => {
expect(findRouterView().exists()).toBe(true);
});
});
|