From 37d4ef092755710556c752770d635cdc631e929c Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Mon, 4 Oct 2021 11:37:55 +0200 Subject: [PATCH] fixes - finally --- .../views/Pages/UserProfile/UserCard_CoinAnimation.spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/views/Pages/UserProfile/UserCard_CoinAnimation.spec.js b/frontend/src/views/Pages/UserProfile/UserCard_CoinAnimation.spec.js index 5a7a8be60..3a6e7d5d2 100644 --- a/frontend/src/views/Pages/UserProfile/UserCard_CoinAnimation.spec.js +++ b/frontend/src/views/Pages/UserProfile/UserCard_CoinAnimation.spec.js @@ -50,7 +50,7 @@ describe('UserCard_CoinAnimation', () => { describe('enable with success', () => { beforeEach(async () => { - await wrapper.setData({ CoinAnimationStatus: false }) + mocks.$store.state.coinanimation = false mockAPIcall.mockResolvedValue({ data: { updateUserInfos: { @@ -81,7 +81,7 @@ describe('UserCard_CoinAnimation', () => { describe('disable with success', () => { beforeEach(async () => { - await wrapper.setData({ CoinAnimationStatus: true }) + mocks.$store.state.coinanimation = true mockAPIcall.mockResolvedValue({ data: { updateUserInfos: { @@ -96,7 +96,7 @@ describe('UserCard_CoinAnimation', () => { expect(mockAPIcall).toBeCalledWith({ mutation: updateUserInfos, variables: { - coinanimation: true, + coinanimation: false, }, }) })