test(component): ScoreScreen

pull/12/head
sundowndev 2019-12-07 19:24:40 +01:00
parent e0b57f0895
commit 1b20f60b3d
1 changed files with 13 additions and 12 deletions

View File

@ -7,23 +7,24 @@ const localVue = createLocalVue();
localVue.use(Vuex);
const $store = new Vuex.Store({
modules: {
questions: {
namespaced: true,
state: {
index: 0,
score: 0,
questions: [],
},
},
},
});
let $store: any;
let wrapper: any;
describe('Component - ScoreScreen', () => {
beforeEach(() => {
$store = new Vuex.Store({
modules: {
questions: {
namespaced: true,
state: {
index: 0,
score: 0,
questions: [],
},
},
},
});
wrapper = shallowMount(ScoreScreen, {
mocks: { $store },
propsData: {