From 828de037ff3be5daae7a3ee183b576f89cc36361 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Fri, 8 May 2026 12:28:52 +0100 Subject: [PATCH] test: clarify acpx runtime guard assertions --- extensions/acpx/src/runtime.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/acpx/src/runtime.test.ts b/extensions/acpx/src/runtime.test.ts index ec5e37d9429..6374610f02f 100644 --- a/extensions/acpx/src/runtime.test.ts +++ b/extensions/acpx/src/runtime.test.ts @@ -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, );