unit test fixin
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 8m50s

This commit is contained in:
2025-12-11 00:53:24 -08:00
parent 99d0dba296
commit 6aa72dd90b
28 changed files with 204 additions and 142 deletions

View File

@@ -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);
});