From fc2af656db90180fdac14ae20a0b33443a3e8962 Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Thu, 2 Sep 2021 08:29:13 +0200 Subject: [PATCH] try async call --- frontend/src/views/Layout/DashboardLayout_gdd.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/Layout/DashboardLayout_gdd.spec.js b/frontend/src/views/Layout/DashboardLayout_gdd.spec.js index bf866492e..614ddf9c4 100644 --- a/frontend/src/views/Layout/DashboardLayout_gdd.spec.js +++ b/frontend/src/views/Layout/DashboardLayout_gdd.spec.js @@ -136,8 +136,8 @@ describe('DashboardLayoutGdd', () => { await flushPromises() }) - it('calls the API', () => { - expect(apolloMock).toBeCalled() + it('calls the API', async () => { + await expect(apolloMock).toBeCalled() }) it('dispatches logout to store', () => {