diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2020-06-12 20:23:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-12 15:23:38 -0400 |
commit | 1fff6f55c3ba98a10018c6d374795e612061e9b6 (patch) | |
tree | 12074b6d44736b11513d857e437f9e30a6bf65a4 /std/examples/chat/server_test.ts | |
parent | 26bf56afdaf16634ffbaa23684faf3a44cc10f62 (diff) |
refactor: Don't destructure the Deno namespace (#6268)
Diffstat (limited to 'std/examples/chat/server_test.ts')
-rw-r--r-- | std/examples/chat/server_test.ts | 6 |
1 files changed, 2 insertions, 4 deletions
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<Deno.RunOptions & { stdout: "piped" }> > { @@ -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(); |