mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Add apollo query mock to the ResetPassword.spec.js so that the success case is taken in account, TODO: Test for error case.
This commit is contained in:
parent
00a1ed9e11
commit
c975ac0aa2
@ -9,6 +9,7 @@ import { toastErrorSpy } from '@test/testSetup'
|
||||
const localVue = global.localVue
|
||||
|
||||
const apolloMutationMock = jest.fn()
|
||||
const apolloQueryMock = jest.fn().mockResolvedValue()
|
||||
|
||||
const routerPushMock = jest.fn()
|
||||
|
||||
@ -40,6 +41,7 @@ const mocks = {
|
||||
},
|
||||
$apollo: {
|
||||
mutate: apolloMutationMock,
|
||||
query: apolloQueryMock,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user