Skip to content

Commit

Permalink
fixed issue with updatedOn in officeRepo
Browse files Browse the repository at this point in the history
Jira ticket: CAMS-442
  • Loading branch information
amorrow-flexion committed Nov 8, 2024
1 parent b74480b commit 532af07
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ describe('offices repo', () => {
.mockResolvedValue('inserted-id');

await repo.putOfficeStaff(officeCode, session.user);
expect(replaceOneSpy).toHaveBeenCalledWith(expect.anything(), staff, true);
expect(replaceOneSpy).toHaveBeenCalledWith(
expect.anything(),
{ ...staff, updatedOn: expect.anything() },
true,
);
});

describe('error handling', () => {
Expand Down

0 comments on commit 532af07

Please sign in to comment.