From b1814528b35e2f65f453e0cf164d2ad78dc14c00 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 5 Dec 2025 03:52:12 +0000 Subject: [PATCH 1/2] Initial plan From 6ae97f7a26bfcede1cecfea1778beb5864326d83 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 5 Dec 2025 03:55:34 +0000 Subject: [PATCH 2/2] fix: Restore proper test assertion for dispatchEvent exception handling Co-authored-by: igorls <4753812+igorls@users.noreply.github.com> --- test/connection-state.spec.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/test/connection-state.spec.ts b/test/connection-state.spec.ts index 38622ee..5f0930a 100644 --- a/test/connection-state.spec.ts +++ b/test/connection-state.spec.ts @@ -235,11 +235,7 @@ describe("Connection State and Reconnection", () => { const event = new CustomEvent("reconnection_failed", { detail: null }); // Should not throw - try { - api.dispatchEvent(event); - } catch (e) { - // ignore - } + expect(() => api.dispatchEvent(event)).not.toThrow(); // Wait for async callback await new Promise((resolve) => setTimeout(resolve, 10));