diff --git a/admin/src/components/CreationFormular.spec.js b/admin/src/components/CreationFormular.spec.js index f167d48a1..f6bd1a924 100644 --- a/admin/src/components/CreationFormular.spec.js +++ b/admin/src/components/CreationFormular.spec.js @@ -81,9 +81,10 @@ describe('CreationFormular', () => { describe('server throws error for moderator data call', () => { beforeEach(() => { jest.clearAllMocks() - apolloMock.mockRejectedValue({ message: 'Ouch!' }) + apolloMock.mockRejectedValueOnce({ message: 'Ouch!' }) wrapper = Wrapper() }) + it('has called store commit with fake data', () => { expect(stateCommitMock).toBeCalledWith('moderator', { id: 0, name: 'Test Moderator' }) })