fixes - finally

This commit is contained in:
Ulf Gebhardt 2021-10-04 11:37:55 +02:00
parent 9da8483b14
commit 37d4ef0927
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD

View File

@ -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,
},
})
})