mock in before each block

This commit is contained in:
Moriz Wahl 2021-09-02 08:06:04 +02:00
parent aed0827549
commit 4bed49a97e

View File

@ -127,6 +127,11 @@ describe('DashboardLayoutGdd', () => {
describe('logout', () => {
beforeEach(async () => {
await apolloMock.mockResolvedValue({
data: {
logout: 'success',
},
})
await wrapper.findComponent({ name: 'sidebar' }).vm.$emit('logout')
await flushPromises()
})