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/uuid/tests | |
parent | 26bf56afdaf16634ffbaa23684faf3a44cc10f62 (diff) |
refactor: Don't destructure the Deno namespace (#6268)
Diffstat (limited to 'std/uuid/tests')
-rw-r--r-- | std/uuid/tests/isNil.ts | 3 | ||||
-rw-r--r-- | std/uuid/tests/v1/generate.ts | 7 | ||||
-rw-r--r-- | std/uuid/tests/v4/generate.ts | 5 | ||||
-rw-r--r-- | std/uuid/tests/v5/generate.ts | 11 |
4 files changed, 12 insertions, 14 deletions
diff --git a/std/uuid/tests/isNil.ts b/std/uuid/tests/isNil.ts index 1f0db416e..4877a9da4 100644 --- a/std/uuid/tests/isNil.ts +++ b/std/uuid/tests/isNil.ts @@ -1,9 +1,8 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. import { assert } from "../../testing/asserts.ts"; -const { test } = Deno; import { NIL_UUID, isNil } from "../mod.ts"; -test({ +Deno.test({ name: "[UUID] isNil", fn(): void { const nil = NIL_UUID; diff --git a/std/uuid/tests/v1/generate.ts b/std/uuid/tests/v1/generate.ts index 1e60d91c1..548b81403 100644 --- a/std/uuid/tests/v1/generate.ts +++ b/std/uuid/tests/v1/generate.ts @@ -1,9 +1,8 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. import { assert, assertEquals } from "../../../testing/asserts.ts"; -const { test } = Deno; import { generate, validate } from "../../v1.ts"; -test({ +Deno.test({ name: "[UUID] test_uuid_v1", fn(): void { const u = generate(); @@ -12,7 +11,7 @@ test({ }, }); -test({ +Deno.test({ name: "[UUID] test_uuid_v1_format", fn(): void { for (let i = 0; i < 10000; i++) { @@ -22,7 +21,7 @@ test({ }, }); -test({ +Deno.test({ name: "[UUID] test_uuid_v1_static", fn(): void { const v1options = { diff --git a/std/uuid/tests/v4/generate.ts b/std/uuid/tests/v4/generate.ts index 897a53fde..181d63ff4 100644 --- a/std/uuid/tests/v4/generate.ts +++ b/std/uuid/tests/v4/generate.ts @@ -1,9 +1,8 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. import { assert, assertEquals } from "../../../testing/asserts.ts"; -const { test } = Deno; import { generate, validate } from "../../v4.ts"; -test({ +Deno.test({ name: "[UUID] test_uuid_v4", fn(): void { const u = generate(); @@ -12,7 +11,7 @@ test({ }, }); -test({ +Deno.test({ name: "[UUID] test_uuid_v4_format", fn(): void { for (let i = 0; i < 10000; i++) { diff --git a/std/uuid/tests/v5/generate.ts b/std/uuid/tests/v5/generate.ts index c869ef505..4e73489d0 100644 --- a/std/uuid/tests/v5/generate.ts +++ b/std/uuid/tests/v5/generate.ts @@ -1,9 +1,10 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. import { assert, assertEquals } from "../../../testing/asserts.ts"; -const { test } = Deno; import { generate, validate } from "../../v5.ts"; + const NAMESPACE = "1b671a64-40d5-491e-99b0-da01ff1f3341"; -test({ + +Deno.test({ name: "[UUID] test_uuid_v5", fn(): void { const u = generate({ value: "", namespace: NAMESPACE }); @@ -12,7 +13,7 @@ test({ }, }); -test({ +Deno.test({ name: "[UUID] test_uuid_v5_format", fn(): void { for (let i = 0; i < 10000; i++) { @@ -22,7 +23,7 @@ test({ }, }); -test({ +Deno.test({ name: "[UUID] test_uuid_v5_option", fn(): void { const v5Options = { @@ -34,7 +35,7 @@ test({ }, }); -test({ +Deno.test({ name: "[UUID] test_uuid_v5_buf_offset", fn(): void { const buf = [ |