Skip to content

Commit

Permalink
Fix show-history.spec.js
Browse files Browse the repository at this point in the history
  • Loading branch information
p0psicles committed Jul 16, 2020
1 parent a0d5f54 commit dcef691
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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"
>
Expand Down
8 changes: 7 additions & 1 deletion themes-default/slim/test/specs/show-history.spec.js
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -29,6 +30,7 @@ describe('ShowHistory.test.js', () => {
localVue = createLocalVue();
localVue.use(Vuex);
localVue.use(VueRouter);
localVue.use(vueCookies);

store = new Store({
modules: {
Expand All @@ -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
Expand Down

0 comments on commit dcef691

Please sign in to comment.