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:
elweyn 2022-03-14 12:42:18 +01:00
parent 00a1ed9e11
commit c975ac0aa2

View File

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