Skip to content

Commit

Permalink
DOP-4497 update test to fix 'TypeError: Right-hand side of 'instanc…
Browse files Browse the repository at this point in the history
…eof' is not callable'
  • Loading branch information
Caesar Bell committed May 6, 2024
1 parent b351684 commit 3071b32
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/unit/repositories/jobRepository.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ describe('Job Repository Tests', () => {
expect(dbRepoHelper.collection.findOneAndUpdate).toBeCalledTimes(1);
});

test('Update with completion status succeeds', async () => {
test('Update with completion status succeeds', () => {
setupForFindOneAndUpdateSuccess();
await expect(
jobRepo.updateWithStatus('64ad959b423952aeb9341fad', 'All good', JobStatus.completed)
).resolves.toEqual(job);
expect(jobRepo.updateWithStatus('64ad959b423952aeb9341fad', 'All good', JobStatus.completed)).resolves.toEqual(
job
);
expect(dbRepoHelper.collection.findOneAndUpdate).toBeCalledTimes(1);
expect(dbRepoHelper.logger.error).toBeCalledTimes(0);
});
Expand Down

0 comments on commit 3071b32

Please sign in to comment.