feat(staples): A3/D3 — Pantry staples toggle UI #35
@@ -34,6 +34,6 @@ export const actions = {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
throw redirect(303, '/household/staples');
|
throw redirect(303, '/household/staples?ctx=onboarding');
|
||||||
}
|
}
|
||||||
} satisfies Actions;
|
} satisfies Actions;
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ describe('household setup — form action', () => {
|
|||||||
expect.unreachable();
|
expect.unreachable();
|
||||||
} catch (e: any) {
|
} catch (e: any) {
|
||||||
expect(e.status).toBe(303);
|
expect(e.status).toBe(303);
|
||||||
expect(e.location).toBe('/household/staples');
|
expect(e.location).toBe('/household/staples?ctx=onboarding');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user