feat(planner): wire variety-aware suggestions into RecipePicker for empty slots #47

Merged
marcel merged 30 commits from feat/issue-46-wire-suggestions-recipe-picker into master 2026-04-09 16:33:12 +02:00
Showing only changes of commit 8686f9eb9f - Show all commits

View File

@@ -59,7 +59,7 @@ describe('GET /planner — suggestions route handler', () => {
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 } });
const url = new URL(`http://localhost/planner?planId=${PLAN_UUID}&date=${DATE}`);