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/uuid/tests/isNil.ts | 2 +- std/uuid/tests/v4/generate.ts | 2 +- std/uuid/tests/v4/validate.ts | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) (limited to 'std/uuid/tests') diff --git a/std/uuid/tests/isNil.ts b/std/uuid/tests/isNil.ts index dcb10b84d..80ec2e0fd 100644 --- a/std/uuid/tests/isNil.ts +++ b/std/uuid/tests/isNil.ts @@ -1,6 +1,6 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. import { assert } from "../../testing/asserts.ts"; -import { test } from "../../testing/mod.ts"; +const { test } = Deno; // @ts-ignore import { NIL_UUID, isNil } from "../mod.ts"; diff --git a/std/uuid/tests/v4/generate.ts b/std/uuid/tests/v4/generate.ts index dfbd90c03..c9946d46c 100644 --- a/std/uuid/tests/v4/generate.ts +++ b/std/uuid/tests/v4/generate.ts @@ -1,6 +1,6 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. import { assert, assertEquals } from "../../../testing/asserts.ts"; -import { test } from "../../../testing/mod.ts"; +const { test } = Deno; import { generate, validate } from "../../v4.ts"; test({ diff --git a/std/uuid/tests/v4/validate.ts b/std/uuid/tests/v4/validate.ts index 6a8b66555..feeecf6b7 100644 --- a/std/uuid/tests/v4/validate.ts +++ b/std/uuid/tests/v4/validate.ts @@ -1,9 +1,8 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. import { assert } from "../../../testing/asserts.ts"; -import { test } from "../../../testing/mod.ts"; import { generate, validate } from "../../v4.ts"; -test({ +Deno.test({ name: "[UUID] is_valid_uuid_v4", fn(): void { const u = generate(); -- cgit v1.2.3