summaryrefslogtreecommitdiff
path: root/std/flags/default_bool_test.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-02-11 17:24:27 +0100
committerGitHub <noreply@github.com>2020-02-11 17:24:27 +0100
commit61273085e40fb4d992eef4b1b5601e3567c80664 (patch)
tree1ac0f401d4cb897bdb6f88e3a5c47fece2856f89 /std/flags/default_bool_test.ts
parente0bcecee6042b219c6626172851af5a25362b948 (diff)
refactor: rewrite tests in std/ to use Deno.test (#3930)
Diffstat (limited to 'std/flags/default_bool_test.ts')
-rwxr-xr-xstd/flags/default_bool_test.ts7
1 files changed, 3 insertions, 4 deletions
diff --git a/std/flags/default_bool_test.ts b/std/flags/default_bool_test.ts
index bf44f5b47..813b6870b 100755
--- a/std/flags/default_bool_test.ts
+++ b/std/flags/default_bool_test.ts
@@ -1,9 +1,8 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
-import { test } from "../testing/mod.ts";
import { assertEquals } from "../testing/asserts.ts";
import { parse } from "./mod.ts";
-test(function booleanDefaultTrue(): void {
+Deno.test(function booleanDefaultTrue(): void {
const argv = parse([], {
boolean: "sometrue",
default: { sometrue: true }
@@ -11,7 +10,7 @@ test(function booleanDefaultTrue(): void {
assertEquals(argv.sometrue, true);
});
-test(function booleanDefaultFalse(): void {
+Deno.test(function booleanDefaultFalse(): void {
const argv = parse([], {
boolean: "somefalse",
default: { somefalse: false }
@@ -19,7 +18,7 @@ test(function booleanDefaultFalse(): void {
assertEquals(argv.somefalse, false);
});
-test(function booleanDefaultNull(): void {
+Deno.test(function booleanDefaultNull(): void {
const argv = parse([], {
boolean: "maybe",
default: { maybe: null }