test: tighten wizard session assertion · openclaw/openclaw@9907f38
steipete
·
2026-05-09
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -53,14 +53,12 @@ describe("WizardSession", () => {
|
53 | 53 | }); |
54 | 54 | |
55 | 55 | const first = await session.next(); |
56 | | -expect(first.step).toMatchObject({ |
57 | | -type: "note", |
58 | | -message: '{"ok":true}', |
59 | | -format: "plain", |
60 | | -}); |
61 | 56 | if (!first.step) { |
62 | 57 | throw new Error("expected plain note"); |
63 | 58 | } |
| 59 | +expect(first.step.type).toBe("note"); |
| 60 | +expect(first.step.message).toBe('{"ok":true}'); |
| 61 | +expect(first.step.format).toBe("plain"); |
64 | 62 | await session.answer(first.step.id, null); |
65 | 63 | const done = await session.next(); |
66 | 64 | expect(done.done).toBe(true); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。