From 61273085e40fb4d992eef4b1b5601e3567c80664 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 11 Feb 2020 17:24:27 +0100 Subject: refactor: rewrite tests in std/ to use Deno.test (#3930) --- std/ws/sha1_test.ts | 2 +- std/ws/test.ts | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'std/ws') diff --git a/std/ws/sha1_test.ts b/std/ws/sha1_test.ts index 43b4bc3c1..9d0d90ea4 100644 --- a/std/ws/sha1_test.ts +++ b/std/ws/sha1_test.ts @@ -1,5 +1,5 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. -import { test } from "../testing/mod.ts"; +const { test } = Deno; import { assertEquals } from "../testing/asserts.ts"; import { Sha1 } from "./sha1.ts"; diff --git a/std/ws/test.ts b/std/ws/test.ts index d3148f7ad..a8dbc903c 100644 --- a/std/ws/test.ts +++ b/std/ws/test.ts @@ -1,7 +1,7 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. import { BufReader, BufWriter } from "../io/bufio.ts"; import { assert, assertEquals, assertThrowsAsync } from "../testing/asserts.ts"; -import { runIfMain, test } from "../testing/mod.ts"; +const { test } = Deno; import { TextProtoReader } from "../textproto/mod.ts"; import * as bytes from "../bytes/mod.ts"; import { @@ -326,5 +326,3 @@ test("WebSocket.send(), WebSocket.ping() should be exclusive", async (): Promise assertEquals(third.opcode, OpCode.BinaryFrame); assertEquals(bytes.equal(third.payload, new Uint8Array([3])), true); }); - -runIfMain(import.meta); -- cgit v1.2.3