Skip to content

Commit a81946a

Browse files
committed
test(discord): align proxy websocket test type
1 parent bee7d91 commit a81946a

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎extensions/discord/src/monitor/provider.proxy.test.ts‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -239,10 +239,9 @@ describe("createDiscordGatewayPlugin", () => {
239239
options?: { agent?: unknown; handshakeTimeout?: number },
240240
) {
241241
webSocketSpy(url, options);
242-
} as unknown as new (
243-
url: string,
244-
options?: { agent?: unknown; handshakeTimeout?: number },
245-
) => import("ws").WebSocket,
242+
} as unknown as NonNullable<
243+
Parameters<typeof createDiscordGatewayPlugin>[0]["testing"]
244+
>["webSocketCtor"],
246245
registerClient: async (_plugin: unknown, client: unknown) => {
247246
baseRegisterClientSpy(client);
248247
},

0 commit comments

Comments
 (0)