feat(recipes): image upload, fix save 500, HelloFresh seed data #53
@@ -59,7 +59,7 @@ describe('GET /planner — suggestions route handler', () => {
|
|||||||
expect(body.suggestions[1].recipe.name).toBe('Nudeln');
|
expect(body.suggestions[1].recipe.name).toBe('Nudeln');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('returns { suggestions: [] } when backend returns error', async () => {
|
it('returns { suggestions: [] } when data is undefined (error response without data)', async () => {
|
||||||
mockGet.mockResolvedValueOnce({ data: undefined, error: { status: 500 } });
|
mockGet.mockResolvedValueOnce({ data: undefined, error: { status: 500 } });
|
||||||
|
|
||||||
const url = new URL(`http://localhost/planner?planId=${PLAN_UUID}&date=${DATE}`);
|
const url = new URL(`http://localhost/planner?planId=${PLAN_UUID}&date=${DATE}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user