Fix failing tests

This commit is contained in:
Tim Rogers
2022-06-30 15:28:57 +01:00
committed by Tim Rogers
parent 9115f344bd
commit ebd4dc568a

View File

@@ -454,7 +454,9 @@ describe('addToProject', () => {
await addToProject() await addToProject()
expect(gqlMock).toHaveBeenCalled() 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') expect(outputs.itemId).toEqual('project-item-id')
}) })
@@ -540,7 +542,9 @@ describe('addToProject', () => {
await addToProject() await addToProject()
expect(gqlMock).toHaveBeenCalled() 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') expect(outputs.itemId).toEqual('project-item-id')
}) })