summaryrefslogtreecommitdiff
path: root/flags/tests/default_bool.ts
diff options
context:
space:
mode:
authorVincent LE GOFF <g_n_s@hotmail.fr>2019-03-06 22:39:50 +0100
committerRyan Dahl <ry@tinyclouds.org>2019-03-06 16:39:50 -0500
commite36edfdb3fd4709358a5f499f13cfe3d53c2b4f7 (patch)
tree1baef3f876a5e75288c3ec9056cdb93dd6b5787f /flags/tests/default_bool.ts
parentd29957ad17956016c35a04f5f1f98565e58e8a2e (diff)
Testing refactor (denoland/deno_std#240)
Original: https://github.com/denoland/deno_std/commit/e1d5c00279132aa639030c6c6d9b4e308bd4775e
Diffstat (limited to 'flags/tests/default_bool.ts')
-rwxr-xr-xflags/tests/default_bool.ts11
1 files changed, 6 insertions, 5 deletions
diff --git a/flags/tests/default_bool.ts b/flags/tests/default_bool.ts
index ed5564715..9c4855c7d 100755
--- a/flags/tests/default_bool.ts
+++ b/flags/tests/default_bool.ts
@@ -1,5 +1,6 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
-import { test, assertEqual } from "../../testing/mod.ts";
+import { test } from "../../testing/mod.ts";
+import { assertEq } from "../../testing/asserts.ts";
import { parse } from "../mod.ts";
test(function booleanDefaultTrue() {
@@ -7,7 +8,7 @@ test(function booleanDefaultTrue() {
boolean: "sometrue",
default: { sometrue: true }
});
- assertEqual(argv.sometrue, true);
+ assertEq(argv.sometrue, true);
});
test(function booleanDefaultFalse() {
@@ -15,7 +16,7 @@ test(function booleanDefaultFalse() {
boolean: "somefalse",
default: { somefalse: false }
});
- assertEqual(argv.somefalse, false);
+ assertEq(argv.somefalse, false);
});
test(function booleanDefaultNull() {
@@ -23,10 +24,10 @@ test(function booleanDefaultNull() {
boolean: "maybe",
default: { maybe: null }
});
- assertEqual(argv.maybe, null);
+ assertEq(argv.maybe, null);
const argv2 = parse(["--maybe"], {
boolean: "maybe",
default: { maybe: null }
});
- assertEqual(argv2.maybe, true);
+ assertEq(argv2.maybe, true);
});