Bugfix: what-to-eat utan hushall ger forslag; onboarding mal kan valjas multi
This commit is contained in:
@@ -12,6 +12,16 @@ describe("progressive onboarding validering (FAS 1b)", () => {
|
||||
expect(result.precisionMode).toBe("exact");
|
||||
});
|
||||
|
||||
it("quick-start accepterar flera mål", () => {
|
||||
const result = parse(quickStartInputSchema, {
|
||||
goals: ["lose_weight", "cook_more"],
|
||||
precisionMode: "simple",
|
||||
});
|
||||
expect(result.goals).toEqual(["lose_weight", "cook_more"]);
|
||||
expect(result.primaryGoal).toBeUndefined();
|
||||
expect(result.precisionMode).toBe("simple");
|
||||
});
|
||||
|
||||
it("quick-start är valfri – endast precision får default", () => {
|
||||
const result = parse(quickStartInputSchema, {});
|
||||
expect(result.primaryGoal).toBeUndefined();
|
||||
|
||||
Reference in New Issue
Block a user