mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 03:20:46 +00:00
test: clarify acpx runtime guard assertions
This commit is contained in:
@@ -143,8 +143,8 @@ describe("AcpxRuntime fresh reset wrapper", () => {
|
||||
});
|
||||
|
||||
it("exposes assertSupportedRuntimeSessionMode as a typed guard", () => {
|
||||
expect(() => __testing.assertSupportedRuntimeSessionMode("persistent")).not.toThrow();
|
||||
expect(() => __testing.assertSupportedRuntimeSessionMode("oneshot")).not.toThrow();
|
||||
expect(__testing.assertSupportedRuntimeSessionMode("persistent")).toBeUndefined();
|
||||
expect(__testing.assertSupportedRuntimeSessionMode("oneshot")).toBeUndefined();
|
||||
expect(() => __testing.assertSupportedRuntimeSessionMode("run" as never)).toThrow(
|
||||
AcpRuntimeError,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user