unit test fixin
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 8m50s
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 8m50s
This commit is contained in:
@@ -196,7 +196,10 @@ describe('Recipe DB Service', () => {
|
||||
const updates = { name: 'Updated Recipe', description: 'New desc' };
|
||||
const result = await recipeRepo.updateRecipe(1, 'user-123', updates);
|
||||
|
||||
expect(mockQuery).toHaveBeenCalledWith(expect.stringContaining('UPDATE public.recipes'), ['Updated Recipe', 'New desc', 1, 'user-123']);
|
||||
expect(mockQuery).toHaveBeenCalledWith(
|
||||
expect.stringContaining('UPDATE public.recipes'),
|
||||
['Updated Recipe', 'New desc', 1, 'user-123']
|
||||
);
|
||||
expect(result).toEqual(mockRecipe);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user