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/node/util_test.ts | |
parent | 26bf56afdaf16634ffbaa23684faf3a44cc10f62 (diff) |
refactor: Don't destructure the Deno namespace (#6268)
Diffstat (limited to 'std/node/util_test.ts')
-rw-r--r-- | std/node/util_test.ts | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/std/node/util_test.ts b/std/node/util_test.ts index b64396441..cedd85a87 100644 --- a/std/node/util_test.ts +++ b/std/node/util_test.ts @@ -1,8 +1,7 @@ -const { test } = Deno; import { assert } from "../testing/asserts.ts"; import * as util from "./util.ts"; -test({ +Deno.test({ name: "[util] isBoolean", fn() { assert(util.isBoolean(true)); @@ -14,7 +13,7 @@ test({ }, }); -test({ +Deno.test({ name: "[util] isNull", fn() { let n; @@ -25,7 +24,7 @@ test({ }, }); -test({ +Deno.test({ name: "[util] isNullOrUndefined", fn() { let n; @@ -36,7 +35,7 @@ test({ }, }); -test({ +Deno.test({ name: "[util] isNumber", fn() { assert(util.isNumber(666)); @@ -46,7 +45,7 @@ test({ }, }); -test({ +Deno.test({ name: "[util] isString", fn() { assert(util.isString("deno")); @@ -55,7 +54,7 @@ test({ }, }); -test({ +Deno.test({ name: "[util] isSymbol", fn() { assert(util.isSymbol(Symbol())); @@ -64,7 +63,7 @@ test({ }, }); -test({ +Deno.test({ name: "[util] isUndefined", fn() { let t; @@ -74,7 +73,7 @@ test({ }, }); -test({ +Deno.test({ name: "[util] isObject", fn() { const dio = { stand: "Za Warudo" }; @@ -84,7 +83,7 @@ test({ }, }); -test({ +Deno.test({ name: "[util] isError", fn() { const java = new Error(); @@ -96,7 +95,7 @@ test({ }, }); -test({ +Deno.test({ name: "[util] isFunction", fn() { const f = function (): void {}; @@ -106,7 +105,7 @@ test({ }, }); -test({ +Deno.test({ name: "[util] isRegExp", fn() { assert(util.isRegExp(new RegExp(/f/))); @@ -116,7 +115,7 @@ test({ }, }); -test({ +Deno.test({ name: "[util] isArray", fn() { assert(util.isArray([])); @@ -125,7 +124,7 @@ test({ }, }); -test({ +Deno.test({ name: "[util] isPrimitive", fn() { const stringType = "hasti"; @@ -149,7 +148,7 @@ test({ }, }); -test({ +Deno.test({ name: "[util] TextDecoder", fn() { assert(util.TextDecoder === TextDecoder); @@ -158,7 +157,7 @@ test({ }, }); -test({ +Deno.test({ name: "[util] TextEncoder", fn() { assert(util.TextEncoder === TextEncoder); @@ -167,7 +166,7 @@ test({ }, }); -test({ +Deno.test({ name: "[util] isDate", fn() { // Test verifies the method is exposed. See _util/_util_types_test for details |