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,7 +7,13 @@ const localVue = createLocalVue();
localVue.use(Vuex);
const $store = new Vuex.Store({
let $store: any;
let wrapper: any;
describe('Component - ScoreScreen', () => {
beforeEach(() => {
$store = new Vuex.Store({
modules: {
questions: {
namespaced: true,
@ -19,11 +25,6 @@ const $store = new Vuex.Store({
},
},
});
let wrapper: any;
describe('Component - ScoreScreen', () => {
beforeEach(() => {
wrapper = shallowMount(ScoreScreen, {
mocks: { $store },
propsData: {