Use shared websocket id bound constant in renderer tests

Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
Cursor AgentandTheo Browne committed 2026-02-10 12:45:39 +00:00
1 parent 8afca7081f
commit d8df4dbecb
1 file changed
+2 -2
+2 -2
View File
@@ -1,5 +1,5 @@
import { beforeEach, describe, expect, it, vi } from "vitest";
import { WS_CLOSE_CODES, WS_CLOSE_REASONS } from "@acme/contracts";
import { WS_CLOSE_CODES, WS_CLOSE_REASONS, WS_REQUEST_ID_MAX_CHARS } from "@acme/contracts";
type Listener = (event: unknown) => void;
@@ -3034,7 +3034,7 @@ describe("wsNativeApi", () => {
socket?.emitMessage(
JSON.stringify({
type: "response",
id: "x".repeat(257),
id: "x".repeat(WS_REQUEST_ID_MAX_CHARS + 1),
ok: true,
result: [],
}),