From 4bed49a97e9af1b0d1a4afefe61800d193600d3d Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Thu, 2 Sep 2021 08:06:04 +0200 Subject: [PATCH] mock in before each block --- frontend/src/views/Layout/DashboardLayout_gdd.spec.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/src/views/Layout/DashboardLayout_gdd.spec.js b/frontend/src/views/Layout/DashboardLayout_gdd.spec.js index b10e0fc91..bf866492e 100644 --- a/frontend/src/views/Layout/DashboardLayout_gdd.spec.js +++ b/frontend/src/views/Layout/DashboardLayout_gdd.spec.js @@ -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() })