From 45707b669d7f0f7a90df2eda72626cb60dc4d2cf Mon Sep 17 00:00:00 2001 From: AkiraFukushima Date: Sun, 27 Oct 2019 18:37:43 +0900 Subject: [PATCH] refs #982 Fix specs for proxy configuration --- spec/renderer/integration/store/Login.spec.ts | 10 +++++++++- spec/renderer/integration/store/TimelineSpace.spec.ts | 10 +++++++++- .../TimelineSpace/Contents/DirectMessages.spec.ts | 10 +++++++++- .../store/TimelineSpace/Contents/Favourites.spec.ts | 10 +++++++++- .../TimelineSpace/Contents/FollowRequests.spec.ts | 10 +++++++++- .../store/TimelineSpace/Contents/Hashtag/Tag.spec.ts | 10 +++++++++- .../store/TimelineSpace/Contents/Home.spec.ts | 10 +++++++++- .../store/TimelineSpace/Contents/Lists/Edit.spec.ts | 10 +++++++++- .../store/TimelineSpace/Contents/Lists/Index.spec.ts | 10 +++++++++- .../store/TimelineSpace/Contents/Lists/Show.spec.ts | 10 +++++++++- .../store/TimelineSpace/Contents/Local.spec.ts | 10 +++++++++- .../store/TimelineSpace/Contents/Mentions.spec.ts | 10 +++++++++- .../store/TimelineSpace/Contents/Notifications.spec.ts | 10 +++++++++- .../store/TimelineSpace/Contents/Public.spec.ts | 10 +++++++++- .../TimelineSpace/Contents/Search/Account.spec.ts | 10 +++++++++- .../store/TimelineSpace/Contents/Search/Tag.spec.ts | 9 ++++++++- .../store/TimelineSpace/Contents/Search/Toots.spec.ts | 10 +++++++++- .../integration/store/TimelineSpace/HeaderMenu.spec.ts | 10 +++++++++- .../store/TimelineSpace/Modals/AddListMember.spec.ts | 10 +++++++++- .../store/TimelineSpace/Modals/ListMembership.spec.ts | 10 +++++++++- .../integration/store/TimelineSpace/SideMenu.spec.ts | 10 +++++++++- 21 files changed, 188 insertions(+), 21 deletions(-) diff --git a/spec/renderer/integration/store/Login.spec.ts b/spec/renderer/integration/store/Login.spec.ts index 421bdb84..4419e98c 100644 --- a/spec/renderer/integration/store/Login.spec.ts +++ b/spec/renderer/integration/store/Login.spec.ts @@ -22,6 +22,13 @@ const initStore = () => { } } +const appState = { + namespaced: true, + state: { + proxyConfiguration: false + } +} + describe('Login', () => { let store let localVue @@ -31,7 +38,8 @@ describe('Login', () => { localVue.use(Vuex) store = new Vuex.Store({ modules: { - Login: initStore() + Login: initStore(), + App: appState } }) }) diff --git a/spec/renderer/integration/store/TimelineSpace.spec.ts b/spec/renderer/integration/store/TimelineSpace.spec.ts index 069bbc2d..ec6f971a 100644 --- a/spec/renderer/integration/store/TimelineSpace.spec.ts +++ b/spec/renderer/integration/store/TimelineSpace.spec.ts @@ -112,6 +112,13 @@ const initStore = () => { } } +const appState = { + namespaced: true, + state: { + proxyConfiguration: false + } +} + describe('TimelineSpace', () => { let store let localVue @@ -121,7 +128,8 @@ describe('TimelineSpace', () => { localVue.use(Vuex) store = new Vuex.Store({ modules: { - TimelineSpace: initStore() + TimelineSpace: initStore(), + App: appState } }) }) diff --git a/spec/renderer/integration/store/TimelineSpace/Contents/DirectMessages.spec.ts b/spec/renderer/integration/store/TimelineSpace/Contents/DirectMessages.spec.ts index e4c5d294..2a177f0a 100644 --- a/spec/renderer/integration/store/TimelineSpace/Contents/DirectMessages.spec.ts +++ b/spec/renderer/integration/store/TimelineSpace/Contents/DirectMessages.spec.ts @@ -135,6 +135,13 @@ const timelineState = { } } +const appState = { + namespaced: true, + state: { + proxyConfiguration: false + } +} + describe('Home', () => { let store let localVue @@ -145,7 +152,8 @@ describe('Home', () => { store = new Vuex.Store({ modules: { DirectMessages: initStore(), - TimelineSpace: timelineState + TimelineSpace: timelineState, + App: appState } }) mockedMegalodon.mockClear() diff --git a/spec/renderer/integration/store/TimelineSpace/Contents/Favourites.spec.ts b/spec/renderer/integration/store/TimelineSpace/Contents/Favourites.spec.ts index 799654ae..eff4469c 100644 --- a/spec/renderer/integration/store/TimelineSpace/Contents/Favourites.spec.ts +++ b/spec/renderer/integration/store/TimelineSpace/Contents/Favourites.spec.ts @@ -133,6 +133,13 @@ const timelineState = { } } +const appState = { + namespaced: true, + state: { + proxyConfiguration: false + } +} + describe('Favourites', () => { let store let localVue @@ -143,7 +150,8 @@ describe('Favourites', () => { store = new Vuex.Store({ modules: { Favourites: initStore(), - TimelineSpace: timelineState + TimelineSpace: timelineState, + App: appState } }) mockedMegalodon.mockClear() diff --git a/spec/renderer/integration/store/TimelineSpace/Contents/FollowRequests.spec.ts b/spec/renderer/integration/store/TimelineSpace/Contents/FollowRequests.spec.ts index c08b7ea0..5c765a8b 100644 --- a/spec/renderer/integration/store/TimelineSpace/Contents/FollowRequests.spec.ts +++ b/spec/renderer/integration/store/TimelineSpace/Contents/FollowRequests.spec.ts @@ -81,6 +81,13 @@ const timelineState = { } } +const appState = { + namespaced: true, + state: { + proxyConfiguration: false + } +} + describe('Home', () => { let store let localVue @@ -91,7 +98,8 @@ describe('Home', () => { store = new Vuex.Store({ modules: { FollowRequests: initStore(), - TimelineSpace: timelineState + TimelineSpace: timelineState, + App: appState } }) mockedMegalodon.mockClear() diff --git a/spec/renderer/integration/store/TimelineSpace/Contents/Hashtag/Tag.spec.ts b/spec/renderer/integration/store/TimelineSpace/Contents/Hashtag/Tag.spec.ts index 3b253357..2429deea 100644 --- a/spec/renderer/integration/store/TimelineSpace/Contents/Hashtag/Tag.spec.ts +++ b/spec/renderer/integration/store/TimelineSpace/Contents/Hashtag/Tag.spec.ts @@ -120,6 +120,13 @@ const timelineState = { } } +const appState = { + namespaced: true, + state: { + proxyConfiguration: false + } +} + describe('Home', () => { let store let localVue @@ -130,7 +137,8 @@ describe('Home', () => { store = new Vuex.Store({ modules: { Tag: initStore(), - TimelineSpace: timelineState + TimelineSpace: timelineState, + App: appState } }) mockedMegalodon.mockClear() diff --git a/spec/renderer/integration/store/TimelineSpace/Contents/Home.spec.ts b/spec/renderer/integration/store/TimelineSpace/Contents/Home.spec.ts index 2a56c15a..342ce756 100644 --- a/spec/renderer/integration/store/TimelineSpace/Contents/Home.spec.ts +++ b/spec/renderer/integration/store/TimelineSpace/Contents/Home.spec.ts @@ -121,6 +121,13 @@ const timelineState = { } } +const appState = { + namespaced: true, + state: { + proxyConfiguration: false + } +} + describe('Home', () => { let store let localVue @@ -131,7 +138,8 @@ describe('Home', () => { store = new Vuex.Store({ modules: { Home: initStore(), - TimelineSpace: timelineState + TimelineSpace: timelineState, + App: appState } }) mockedMegalodon.mockClear() diff --git a/spec/renderer/integration/store/TimelineSpace/Contents/Lists/Edit.spec.ts b/spec/renderer/integration/store/TimelineSpace/Contents/Lists/Edit.spec.ts index f96bc16f..4cdc949e 100644 --- a/spec/renderer/integration/store/TimelineSpace/Contents/Lists/Edit.spec.ts +++ b/spec/renderer/integration/store/TimelineSpace/Contents/Lists/Edit.spec.ts @@ -54,6 +54,13 @@ const timelineState = { } } +const appState = { + namespaced: true, + state: { + proxyConfiguration: false + } +} + describe('Lists/Edit', () => { let store let localVue @@ -64,7 +71,8 @@ describe('Lists/Edit', () => { store = new Vuex.Store({ modules: { Edit: initStore(), - TimelineSpace: timelineState + TimelineSpace: timelineState, + App: appState } }) mockedMegalodon.mockClear() diff --git a/spec/renderer/integration/store/TimelineSpace/Contents/Lists/Index.spec.ts b/spec/renderer/integration/store/TimelineSpace/Contents/Lists/Index.spec.ts index 6e562250..b6e4c499 100644 --- a/spec/renderer/integration/store/TimelineSpace/Contents/Lists/Index.spec.ts +++ b/spec/renderer/integration/store/TimelineSpace/Contents/Lists/Index.spec.ts @@ -36,6 +36,13 @@ const timelineState = { } } +const appState = { + namespaced: true, + state: { + proxyConfiguration: false + } +} + describe('Lists/Index', () => { let store let localVue @@ -46,7 +53,8 @@ describe('Lists/Index', () => { store = new Vuex.Store({ modules: { Index: initStore(), - TimelineSpace: timelineState + TimelineSpace: timelineState, + App: appState } }) mockedMegalodon.mockClear() diff --git a/spec/renderer/integration/store/TimelineSpace/Contents/Lists/Show.spec.ts b/spec/renderer/integration/store/TimelineSpace/Contents/Lists/Show.spec.ts index 38075f73..0591b809 100644 --- a/spec/renderer/integration/store/TimelineSpace/Contents/Lists/Show.spec.ts +++ b/spec/renderer/integration/store/TimelineSpace/Contents/Lists/Show.spec.ts @@ -122,6 +122,13 @@ const timelineState = { } } +const appState = { + namespaced: true, + state: { + proxyConfiguration: false + } +} + describe('Lists/Show', () => { let store let localVue @@ -132,7 +139,8 @@ describe('Lists/Show', () => { store = new Vuex.Store({ modules: { Show: initStore(), - TimelineSpace: timelineState + TimelineSpace: timelineState, + App: appState } }) mockedMegalodon.mockClear() diff --git a/spec/renderer/integration/store/TimelineSpace/Contents/Local.spec.ts b/spec/renderer/integration/store/TimelineSpace/Contents/Local.spec.ts index 5eb923d5..34990cac 100644 --- a/spec/renderer/integration/store/TimelineSpace/Contents/Local.spec.ts +++ b/spec/renderer/integration/store/TimelineSpace/Contents/Local.spec.ts @@ -119,6 +119,13 @@ const timelineState = { } } +const appState = { + namespaced: true, + state: { + proxyConfiguration: false + } +} + describe('Home', () => { let store let localVue @@ -129,7 +136,8 @@ describe('Home', () => { store = new Vuex.Store({ modules: { Local: initStore(), - TimelineSpace: timelineState + TimelineSpace: timelineState, + App: appState } }) mockedMegalodon.mockClear() diff --git a/spec/renderer/integration/store/TimelineSpace/Contents/Mentions.spec.ts b/spec/renderer/integration/store/TimelineSpace/Contents/Mentions.spec.ts index 44fd9bc0..74372a32 100644 --- a/spec/renderer/integration/store/TimelineSpace/Contents/Mentions.spec.ts +++ b/spec/renderer/integration/store/TimelineSpace/Contents/Mentions.spec.ts @@ -121,6 +121,13 @@ const timelineState = { } } +const appState = { + namespaced: true, + state: { + proxyConfiguration: false + } +} + describe('Mentions', () => { let store let localVue @@ -131,7 +138,8 @@ describe('Mentions', () => { store = new Vuex.Store({ modules: { Mentions: initStore(), - TimelineSpace: timelineState + TimelineSpace: timelineState, + App: appState } }) mockedMegalodon.mockClear() diff --git a/spec/renderer/integration/store/TimelineSpace/Contents/Notifications.spec.ts b/spec/renderer/integration/store/TimelineSpace/Contents/Notifications.spec.ts index f9bb46c1..062c6a1e 100644 --- a/spec/renderer/integration/store/TimelineSpace/Contents/Notifications.spec.ts +++ b/spec/renderer/integration/store/TimelineSpace/Contents/Notifications.spec.ts @@ -191,6 +191,13 @@ const timelineState = { } } +const appState = { + namespaced: true, + state: { + proxyConfiguration: false + } +} + describe('Notifications', () => { let store let localVue @@ -201,7 +208,8 @@ describe('Notifications', () => { store = new Vuex.Store({ modules: { Notifications: initStore(), - TimelineSpace: timelineState + TimelineSpace: timelineState, + App: appState } }) mockedMegalodon.mockClear() diff --git a/spec/renderer/integration/store/TimelineSpace/Contents/Public.spec.ts b/spec/renderer/integration/store/TimelineSpace/Contents/Public.spec.ts index 56726d32..b921f269 100644 --- a/spec/renderer/integration/store/TimelineSpace/Contents/Public.spec.ts +++ b/spec/renderer/integration/store/TimelineSpace/Contents/Public.spec.ts @@ -119,6 +119,13 @@ const timelineState = { } } +const appState = { + namespaced: true, + state: { + proxyConfiguration: false + } +} + describe('Home', () => { let store let localVue @@ -129,7 +136,8 @@ describe('Home', () => { store = new Vuex.Store({ modules: { Public: initStore(), - TimelineSpace: timelineState + TimelineSpace: timelineState, + App: appState } }) mockedMegalodon.mockClear() diff --git a/spec/renderer/integration/store/TimelineSpace/Contents/Search/Account.spec.ts b/spec/renderer/integration/store/TimelineSpace/Contents/Search/Account.spec.ts index 7cce5945..04548b00 100644 --- a/spec/renderer/integration/store/TimelineSpace/Contents/Search/Account.spec.ts +++ b/spec/renderer/integration/store/TimelineSpace/Contents/Search/Account.spec.ts @@ -65,6 +65,13 @@ const timelineState = { } } +const appState = { + namespaced: true, + state: { + proxyConfiguration: false + } +} + describe('Search/Account', () => { let store let localVue @@ -75,7 +82,8 @@ describe('Search/Account', () => { store = new Vuex.Store({ modules: { Account: initStore(), - TimelineSpace: timelineState + TimelineSpace: timelineState, + App: appState } }) mockedMegalodon.mockClear() diff --git a/spec/renderer/integration/store/TimelineSpace/Contents/Search/Tag.spec.ts b/spec/renderer/integration/store/TimelineSpace/Contents/Search/Tag.spec.ts index 03eef77d..7548daaa 100644 --- a/spec/renderer/integration/store/TimelineSpace/Contents/Search/Tag.spec.ts +++ b/spec/renderer/integration/store/TimelineSpace/Contents/Search/Tag.spec.ts @@ -48,6 +48,12 @@ const timelineState = { } } } +const appState = { + namespaced: true, + state: { + proxyConfiguration: false + } +} describe('Search/Account', () => { let store @@ -59,7 +65,8 @@ describe('Search/Account', () => { store = new Vuex.Store({ modules: { Tag: initStore(), - TimelineSpace: timelineState + TimelineSpace: timelineState, + App: appState } }) mockedMegalodon.mockClear() diff --git a/spec/renderer/integration/store/TimelineSpace/Contents/Search/Toots.spec.ts b/spec/renderer/integration/store/TimelineSpace/Contents/Search/Toots.spec.ts index 19dde18e..50cb8a1e 100644 --- a/spec/renderer/integration/store/TimelineSpace/Contents/Search/Toots.spec.ts +++ b/spec/renderer/integration/store/TimelineSpace/Contents/Search/Toots.spec.ts @@ -97,6 +97,13 @@ const timelineState = { } } +const appState = { + namespaced: true, + state: { + proxyConfiguration: false + } +} + describe('Search/Account', () => { let store let localVue @@ -107,7 +114,8 @@ describe('Search/Account', () => { store = new Vuex.Store({ modules: { Toots: initStore(), - TimelineSpace: timelineState + TimelineSpace: timelineState, + App: appState } }) mockedMegalodon.mockClear() diff --git a/spec/renderer/integration/store/TimelineSpace/HeaderMenu.spec.ts b/spec/renderer/integration/store/TimelineSpace/HeaderMenu.spec.ts index df591bea..83ae79a4 100644 --- a/spec/renderer/integration/store/TimelineSpace/HeaderMenu.spec.ts +++ b/spec/renderer/integration/store/TimelineSpace/HeaderMenu.spec.ts @@ -38,6 +38,13 @@ const timelineState = { } } +const appState = { + namespaced: true, + state: { + proxyConfiguration: false + } +} + describe('HeaderMenu', () => { let store let localVue @@ -48,7 +55,8 @@ describe('HeaderMenu', () => { store = new Vuex.Store({ modules: { HeaderMenu: initStore(), - TimelineSpace: timelineState + TimelineSpace: timelineState, + App: appState } }) mockedMegalodon.mockClear() diff --git a/spec/renderer/integration/store/TimelineSpace/Modals/AddListMember.spec.ts b/spec/renderer/integration/store/TimelineSpace/Modals/AddListMember.spec.ts index 6efd0d03..aa0ddfd7 100644 --- a/spec/renderer/integration/store/TimelineSpace/Modals/AddListMember.spec.ts +++ b/spec/renderer/integration/store/TimelineSpace/Modals/AddListMember.spec.ts @@ -54,6 +54,13 @@ const timelineState = { } } +const appState = { + namespaced: true, + state: { + proxyConfiguration: false + } +} + describe('AddListMember', () => { let store let localVue @@ -64,7 +71,8 @@ describe('AddListMember', () => { store = new Vuex.Store({ modules: { AddListMember: initStore(), - TimelineSpace: timelineState + TimelineSpace: timelineState, + App: appState } }) mockedMegalodon.mockClear() diff --git a/spec/renderer/integration/store/TimelineSpace/Modals/ListMembership.spec.ts b/spec/renderer/integration/store/TimelineSpace/Modals/ListMembership.spec.ts index 0b347067..bdcfdfed 100644 --- a/spec/renderer/integration/store/TimelineSpace/Modals/ListMembership.spec.ts +++ b/spec/renderer/integration/store/TimelineSpace/Modals/ListMembership.spec.ts @@ -65,6 +65,13 @@ const timelineState = { } } +const appState = { + namespaced: true, + state: { + proxyConfiguration: false + } +} + describe('ListMembership', () => { let store let localVue @@ -75,7 +82,8 @@ describe('ListMembership', () => { store = new Vuex.Store({ modules: { ListMembership: initStore(), - TimelineSpace: timelineState + TimelineSpace: timelineState, + App: appState } }) }) diff --git a/spec/renderer/integration/store/TimelineSpace/SideMenu.spec.ts b/spec/renderer/integration/store/TimelineSpace/SideMenu.spec.ts index f4346b8d..6fdb9ff1 100644 --- a/spec/renderer/integration/store/TimelineSpace/SideMenu.spec.ts +++ b/spec/renderer/integration/store/TimelineSpace/SideMenu.spec.ts @@ -42,6 +42,13 @@ const initStore = () => { } } +const appState = { + namespaced: true, + state: { + proxyConfiguration: false + } +} + describe('SideMenu', () => { let store let localVue @@ -51,7 +58,8 @@ describe('SideMenu', () => { localVue.use(Vuex) store = new Vuex.Store({ modules: { - SideMenu: initStore() + SideMenu: initStore(), + App: appState } }) mockedMegalodon.mockClear()