diff --git a/admin/src/components/EditCreationFormular.spec.js b/admin/src/components/EditCreationFormular.spec.js index 968525613..22b9817f1 100644 --- a/admin/src/components/EditCreationFormular.spec.js +++ b/admin/src/components/EditCreationFormular.spec.js @@ -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 = {