test: clarify acpx runtime guard assertions · openclaw/openclaw@828de03
steipete
·
2026-05-08
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -143,8 +143,8 @@ describe("AcpxRuntime fresh reset wrapper", () => {
|
143 | 143 | }); |
144 | 144 | |
145 | 145 | it("exposes assertSupportedRuntimeSessionMode as a typed guard", () => { |
146 | | -expect(() => __testing.assertSupportedRuntimeSessionMode("persistent")).not.toThrow(); |
147 | | -expect(() => __testing.assertSupportedRuntimeSessionMode("oneshot")).not.toThrow(); |
| 146 | +expect(__testing.assertSupportedRuntimeSessionMode("persistent")).toBeUndefined(); |
| 147 | +expect(__testing.assertSupportedRuntimeSessionMode("oneshot")).toBeUndefined(); |
148 | 148 | expect(() => __testing.assertSupportedRuntimeSessionMode("run" as never)).toThrow( |
149 | 149 | AcpRuntimeError, |
150 | 150 | ); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。