test: clarify acpx runtime guard assertions

This commit is contained in:
Peter Steinberger
2026-05-08 12:28:52 +01:00
parent 8caef5d0ea
commit 828de037ff

View File

@@ -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,
);