Merge pull request #792 from gradido/fix-flaky-test

fix: Flaky Test for Logout
This commit is contained in:
Moriz Wahl 2021-09-02 13:58:24 +02:00 committed by GitHub
commit cd4318731f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -127,12 +127,17 @@ describe('DashboardLayoutGdd', () => {
describe('logout', () => {
beforeEach(async () => {
await apolloMock.mockResolvedValue({
data: {
logout: 'success',
},
})
await wrapper.findComponent({ name: 'sidebar' }).vm.$emit('logout')
await flushPromises()
})
it('calls the API', async () => {
expect(apolloMock).toBeCalled()
await expect(apolloMock).toBeCalled()
})
it('dispatches logout to store', () => {