MCPcopy Index your code
hub / github.com/coder/coder / websockets.test.ts

File websockets.test.ts

site/src/testHelpers/websockets.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { createMockWebSocket } from "./websockets";
2
3describe(createMockWebSocket.name, () => {
4 it("Throws if URL does not have ws:// or wss:// protocols", () => {

Callers

nothing calls this directly

Calls 7

createMockWebSocketFunction · 0.90
publishErrorMethod · 0.80
publishMessageMethod · 0.80
addEventListenerMethod · 0.65
closeMethod · 0.65
removeEventListenerMethod · 0.45
sendMethod · 0.45

Tested by

no test coverage detected