diff options
| author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-02-11 17:24:27 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-11 17:24:27 +0100 |
| commit | 61273085e40fb4d992eef4b1b5601e3567c80664 (patch) | |
| tree | 1ac0f401d4cb897bdb6f88e3a5c47fece2856f89 /std/uuid | |
| parent | e0bcecee6042b219c6626172851af5a25362b948 (diff) | |
refactor: rewrite tests in std/ to use Deno.test (#3930)
Diffstat (limited to 'std/uuid')
| -rwxr-xr-x | std/uuid/test.ts | 3 | ||||
| -rw-r--r-- | std/uuid/tests/isNil.ts | 2 | ||||
| -rw-r--r-- | std/uuid/tests/v4/generate.ts | 2 | ||||
| -rw-r--r-- | std/uuid/tests/v4/validate.ts | 3 |
4 files changed, 3 insertions, 7 deletions
diff --git a/std/uuid/test.ts b/std/uuid/test.ts index 1e6e98154..aeb6ed112 100755 --- a/std/uuid/test.ts +++ b/std/uuid/test.ts @@ -1,6 +1,5 @@ #!/usr/bin/env -S deno run // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. -import { runIfMain } from "../testing/mod.ts"; // Generic Tests import "./tests/isNil.ts"; @@ -8,5 +7,3 @@ import "./tests/isNil.ts"; // V4 Tests import "./tests/v4/validate.ts"; import "./tests/v4/generate.ts"; - -runIfMain(import.meta); 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(); |
