fixed coinanimation tests

This commit is contained in:
Ulf Gebhardt 2021-10-07 09:49:37 +02:00
parent bb293c4b19
commit 275992b560
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD

View File

@ -71,11 +71,11 @@ describe('UserCard_CoinAnimation', () => {
})
it('updates the store', () => {
expect(storeCommitMock).toBeCalledWith('coinanimation', false)
expect(storeCommitMock).toBeCalledWith('coinanimation', true)
})
it('toasts a success message', () => {
expect(toastSuccessMock).toBeCalledWith('settings.coinanimation.False')
expect(toastSuccessMock).toBeCalledWith('settings.coinanimation.True')
})
})
@ -102,11 +102,11 @@ describe('UserCard_CoinAnimation', () => {
})
it('updates the store', () => {
expect(storeCommitMock).toBeCalledWith('coinanimation', true)
expect(storeCommitMock).toBeCalledWith('coinanimation', false)
})
it('toasts a success message', () => {
expect(toastSuccessMock).toBeCalledWith('settings.coinanimation.True')
expect(toastSuccessMock).toBeCalledWith('settings.coinanimation.False')
})
})