mirror of
https://github.com/denoland/deno.git
synced 2025-02-07 23:06:50 -05:00
Lint
This commit is contained in:
parent
5f5cc5a707
commit
1fa8905401
1 changed files with 1 additions and 1 deletions
|
@ -823,7 +823,7 @@ Deno.test("send to a closed socket", async () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
Deno.test(async function websocketDoesntLeak() {
|
Deno.test(async function websocketDoesntLeak() {
|
||||||
const { promise, resolve, reject } = Promise.withResolvers<void>();
|
const { promise, resolve } = Promise.withResolvers<void>();
|
||||||
const ws = new WebSocket(new URL("ws://localhost:4242/"));
|
const ws = new WebSocket(new URL("ws://localhost:4242/"));
|
||||||
assertEquals(ws.url, "ws://localhost:4242/");
|
assertEquals(ws.url, "ws://localhost:4242/");
|
||||||
ws.onopen = () => resolve();
|
ws.onopen = () => resolve();
|
||||||
|
|
Loading…
Add table
Reference in a new issue