From a76287c0b066912db51453fe9d80486c9e5759d4 Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Mon, 6 Dec 2021 16:10:07 +0100 Subject: [PATCH] add toasted error mock --- admin/src/components/EditCreationFormular.spec.js | 4 ++++ 1 file changed, 4 insertions(+) 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 = {