diff options
Diffstat (limited to 'std/_util')
-rw-r--r-- | std/_util/assert_test.ts | 8 | ||||
-rw-r--r-- | std/_util/deep_assign_test.ts | 3 |
2 files changed, 4 insertions, 7 deletions
diff --git a/std/_util/assert_test.ts b/std/_util/assert_test.ts index 38aeae91b..2c94f8bca 100644 --- a/std/_util/assert_test.ts +++ b/std/_util/assert_test.ts @@ -1,16 +1,14 @@ import { assert, DenoStdInternalError } from "./assert.ts"; import { assertThrows } from "../testing/asserts.ts"; -const { test } = Deno; - -test({ +Deno.test({ name: "assert valid scenario", fn(): void { assert(true); }, }); -test({ +Deno.test({ name: "assert invalid scenario, no message", fn(): void { assertThrows(() => { @@ -18,7 +16,7 @@ test({ }, DenoStdInternalError); }, }); -test({ +Deno.test({ name: "assert invalid scenario, with message", fn(): void { assertThrows( diff --git a/std/_util/deep_assign_test.ts b/std/_util/deep_assign_test.ts index f1a56e1ad..14e81348d 100644 --- a/std/_util/deep_assign_test.ts +++ b/std/_util/deep_assign_test.ts @@ -1,9 +1,8 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. -const { test } = Deno; import { assertEquals, assert } from "../testing/asserts.ts"; import { deepAssign } from "./deep_assign.ts"; -test("deepAssignTest", function (): void { +Deno.test("deepAssignTest", function (): void { const date = new Date("1979-05-27T07:32:00Z"); const reg = RegExp(/DENOWOWO/); const obj1 = { deno: { bar: { deno: ["is", "not", "node"] } } }; |