Refactor: Update mocks in test files for improved structure and clarity
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 7m4s

This commit is contained in:
2025-12-15 00:53:51 -08:00
parent 066933ff6d
commit 648f1c0239
10 changed files with 92 additions and 57 deletions

View File

@@ -458,8 +458,8 @@ describe('Flyer DB Service', () => {
await flyerRepo.deleteFlyer(42, mockLogger);
expect(withTransaction).toHaveBeenCalledTimes(1);
expect(mockClientQuery).toHaveBeenCalledWith('DELETE FROM public.flyers WHERE flyer_id = $1', [42]);
expect(withTransaction).toHaveBeenCalledTimes(1);
});
it('should throw an error if the flyer to delete is not found', async () => {