diff --git a/themes-default/slim/test/specs/__snapshots__/show-results.spec.js.snap b/themes-default/slim/test/specs/__snapshots__/show-results.spec.js.snap index e0cd47efb2..fef413260b 100644 --- a/themes-default/slim/test/specs/__snapshots__/show-results.spec.js.snap +++ b/themes-default/slim/test/specs/__snapshots__/show-results.spec.js.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`ShowResults.test.js renders show-results component with results 1`] = ` +exports[`ShowResults.test.js renders show-results component 1`] = ` <div class="show-results-wrapper" > diff --git a/themes-default/slim/test/specs/show-history.spec.js b/themes-default/slim/test/specs/show-history.spec.js index 3b86f5de23..9f98262925 100644 --- a/themes-default/slim/test/specs/show-history.spec.js +++ b/themes-default/slim/test/specs/show-history.spec.js @@ -1,5 +1,6 @@ import Vuex, { Store } from 'vuex'; import VueRouter from 'vue-router'; +import vueCookies from 'vue-cookies'; import { createLocalVue, shallowMount } from '@vue/test-utils'; import { ShowHistory } from '../../src/components'; import historyModule from '../../src/store/modules/history'; @@ -29,6 +30,7 @@ describe('ShowHistory.test.js', () => { localVue = createLocalVue(); localVue.use(Vuex); localVue.use(VueRouter); + localVue.use(vueCookies); store = new Store({ modules: { @@ -37,7 +39,11 @@ describe('ShowHistory.test.js', () => { }, history: { getters: historyModule.getters, - state: state.history + state: state.history, + actions: { + getShowEpisodeHistory: jest.fn(), + getShowHistory: jest.fn() + } }, config: { state: state.config