diff --git a/backend/functions/lib/adapters/gateways/mongo/offices.mongo.repository.test.ts b/backend/functions/lib/adapters/gateways/mongo/offices.mongo.repository.test.ts index 7eb144332..432dfb8b6 100644 --- a/backend/functions/lib/adapters/gateways/mongo/offices.mongo.repository.test.ts +++ b/backend/functions/lib/adapters/gateways/mongo/offices.mongo.repository.test.ts @@ -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', () => {