From 1fff6f55c3ba98a10018c6d374795e612061e9b6 Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Fri, 12 Jun 2020 20:23:38 +0100 Subject: refactor: Don't destructure the Deno namespace (#6268) --- std/examples/chat/server_test.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'std/examples/chat/server_test.ts') diff --git a/std/examples/chat/server_test.ts b/std/examples/chat/server_test.ts index 8e04b71d8..872f4ee12 100644 --- a/std/examples/chat/server_test.ts +++ b/std/examples/chat/server_test.ts @@ -5,8 +5,6 @@ import { BufReader } from "../../io/bufio.ts"; import { connectWebSocket, WebSocket } from "../../ws/mod.ts"; import { delay } from "../../async/delay.ts"; -const { test } = Deno; - async function startServer(): Promise< Deno.Process > { @@ -36,7 +34,7 @@ async function startServer(): Promise< return server; } -test({ +Deno.test({ name: "[examples/chat] GET / should serve html", async fn() { const server = await startServer(); @@ -54,7 +52,7 @@ test({ }, }); -test({ +Deno.test({ name: "[examples/chat] GET /ws should upgrade conn to ws", async fn() { const server = await startServer(); -- cgit v1.2.3