add toasted error mock

This commit is contained in:
Moriz Wahl 2021-12-06 16:10:07 +01:00
parent 32def1575e
commit a76287c0b0

View File

@ -15,6 +15,7 @@ const apolloMutateMock = jest.fn().mockResolvedValue({
})
const stateCommitMock = jest.fn()
const toastedErrorMock = jest.fn()
const mocks = {
$moment: jest.fn(() => {
@ -39,6 +40,9 @@ const mocks = {
},
commit: stateCommitMock,
},
$toasted: {
error: toastedErrorMock,
},
}
const propsData = {