refs #982 Fix specs for proxy configuration

This commit is contained in:
AkiraFukushima 2019-10-27 18:37:43 +09:00
parent 0068697a7e
commit 45707b669d
21 changed files with 188 additions and 21 deletions

View File

@ -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
}
})
})

View File

@ -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
}
})
})

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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
}
})
})

View File

@ -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()