mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
mock in before each block
This commit is contained in:
parent
aed0827549
commit
4bed49a97e
@ -127,6 +127,11 @@ describe('DashboardLayoutGdd', () => {
|
|||||||
|
|
||||||
describe('logout', () => {
|
describe('logout', () => {
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
|
await apolloMock.mockResolvedValue({
|
||||||
|
data: {
|
||||||
|
logout: 'success',
|
||||||
|
},
|
||||||
|
})
|
||||||
await wrapper.findComponent({ name: 'sidebar' }).vm.$emit('logout')
|
await wrapper.findComponent({ name: 'sidebar' }).vm.$emit('logout')
|
||||||
await flushPromises()
|
await flushPromises()
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user