From 13a4afbf1d6c1bda0eb639ad589f7680e1d244f9 Mon Sep 17 00:00:00 2001 From: AkiraFukushima Date: Sun, 21 Mar 2021 21:40:40 +0900 Subject: [PATCH] refs #2204 Fix integration specs --- .../store/Preferences/Notification.spec.ts | 9 ++++++--- .../TimelineSpace/Contents/Hashtag/List.spec.ts | 17 ++++++++++++++++- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/spec/renderer/integration/store/Preferences/Notification.spec.ts b/spec/renderer/integration/store/Preferences/Notification.spec.ts index 203ee6f5..649a4807 100644 --- a/spec/renderer/integration/store/Preferences/Notification.spec.ts +++ b/spec/renderer/integration/store/Preferences/Notification.spec.ts @@ -65,7 +65,8 @@ describe('Preferences/Notification', () => { follow: false, follow_request: false, reaction: false, - status: false + status: false, + poll: false } } } @@ -83,7 +84,8 @@ describe('Preferences/Notification', () => { follow: false, follow_request: false, reaction: false, - status: false + status: false, + poll: false } }) }) @@ -112,7 +114,8 @@ describe('Preferences/Notification', () => { follow: true, follow_request: true, reaction: true, - status: true + status: true, + poll: true } }) expect(App.actions.loadPreferences).toBeCalled() diff --git a/spec/renderer/integration/store/TimelineSpace/Contents/Hashtag/List.spec.ts b/spec/renderer/integration/store/TimelineSpace/Contents/Hashtag/List.spec.ts index 7bbd0aca..dfeb9a76 100644 --- a/spec/renderer/integration/store/TimelineSpace/Contents/Hashtag/List.spec.ts +++ b/spec/renderer/integration/store/TimelineSpace/Contents/Hashtag/List.spec.ts @@ -32,6 +32,20 @@ const initStore = () => { } } +const sideMenuStore = { + namespaced: true, + actions: { + listTags: jest.fn() + } +} + +const timelineState = { + namespaced: true, + modules: { + SideMenu: sideMenuStore + } +} + describe('Hashtag/List', () => { let store let localVue @@ -41,7 +55,8 @@ describe('Hashtag/List', () => { localVue.use(Vuex) store = new Vuex.Store({ modules: { - List: initStore() + List: initStore(), + TimelineSpace: timelineState } }) })