From f3beeb9f1c317c1e69a1c3f6ddc7ac99b300184e Mon Sep 17 00:00:00 2001 From: lana-k Date: Fri, 12 Feb 2021 22:05:51 +0100 Subject: [PATCH] fix error logs in tests --- tests/unit/components/Tab.spec.js | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/tests/unit/components/Tab.spec.js b/tests/unit/components/Tab.spec.js index 2e5e01d..f0c9a75 100644 --- a/tests/unit/components/Tab.spec.js +++ b/tests/unit/components/Tab.spec.js @@ -11,7 +11,7 @@ describe('Tab.vue', () => { const state = { currentTabId: 1 } - const store = new Vuex.Store({ state }) + const store = new Vuex.Store({ state, mutations }) // mount the component const wrapper = mount(Tab, { @@ -37,7 +37,7 @@ describe('Tab.vue', () => { const state = { currentTabId: 0 } - const store = new Vuex.Store({ state }) + const store = new Vuex.Store({ state, mutations }) // mount the component const wrapper = mount(Tab, { @@ -56,7 +56,7 @@ describe('Tab.vue', () => { currentTabId: 1 } - const store = new Vuex.Store({ state }) + const store = new Vuex.Store({ state, mutations }) // mount the component const wrapper = mount(Tab, { @@ -79,7 +79,7 @@ describe('Tab.vue', () => { currentTabId: 0 } - const store = new Vuex.Store({ state }) + const store = new Vuex.Store({ state, mutations }) // mount the component const wrapper = mount(Tab, { @@ -214,7 +214,13 @@ describe('Tab.vue', () => { } const store = new Vuex.Store({ state, mutations }) - const result = ['this is table result'] + const result = { + columns: ['id', 'name'], + values: [ + [1, 'foo'], + [2, 'bar'] + ] + } const $db = { execute () { return Promise.resolve(result) } }