From 42cc56059e06a03d0fd93dd3c464c99d9f1711bb Mon Sep 17 00:00:00 2001 From: Tim Rogers Date: Thu, 30 Jun 2022 15:28:57 +0100 Subject: [PATCH] Fix failing tests --- __tests__/add-to-project.test.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/__tests__/add-to-project.test.ts b/__tests__/add-to-project.test.ts index 49d9ad77..27532b5f 100644 --- a/__tests__/add-to-project.test.ts +++ b/__tests__/add-to-project.test.ts @@ -454,7 +454,9 @@ describe('addToProject', () => { await addToProject() expect(gqlMock).toHaveBeenCalled() - expect(infoSpy).not.toHaveBeenCalled() + expect(infoSpy).toHaveBeenCalledWith('Creating project item') + // We shouldn't have any logs relating to the issue being skipped + expect(infoSpy.mock.calls.length).toEqual(1) expect(outputs.itemId).toEqual('project-item-id') }) @@ -540,7 +542,9 @@ describe('addToProject', () => { await addToProject() expect(gqlMock).toHaveBeenCalled() - expect(infoSpy).not.toHaveBeenCalled() + expect(infoSpy).toHaveBeenCalledWith('Creating project item') + // We shouldn't have any logs relating to the issue being skipped + expect(infoSpy.mock.calls.length).toEqual(1) expect(outputs.itemId).toEqual('project-item-id') })