Fix failing tests

This commit is contained in:
Tim Rogers
2022-07-15 11:26:04 +01:00
committed by Tim Rogers
parent 9115f344bd
commit ebd4dc568a
+6 -2
View File
@@ -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')
})