refs #2204 Fix integration specs
This commit is contained in:
parent
70b877f9f0
commit
13a4afbf1d
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
}
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue