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
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 7m4s
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user