






























@@ -85,10 +85,8 @@ describe("commitment extraction", () => {
8585);
86868787expect(parsed.candidates).toHaveLength(1);
88-expect(parsed.candidates[0]).toMatchObject({
89-kind: "event_check_in",
90-suggestedText: "How did the interview go?",
91-});
88+expect(parsed.candidates[0]?.kind).toBe("event_check_in");
89+expect(parsed.candidates[0]?.suggestedText).toBe("How did the interview go?");
9290});
93919492it("omits routing scope identifiers from extractor prompts", () => {
@@ -192,10 +190,8 @@ describe("commitment extraction", () => {
192190expect(created).toHaveLength(1);
193191expect(deduped).toHaveLength(0);
194192expect(store.commitments).toHaveLength(1);
195-expect(store.commitments[0]).toMatchObject({
196-reason: "Updated reason",
197-confidence: 0.97,
198-status: "pending",
199-});
193+expect(store.commitments[0]?.reason).toBe("Updated reason");
194+expect(store.commitments[0]?.confidence).toBe(0.97);
195+expect(store.commitments[0]?.status).toBe("pending");
200196});
201197});
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。