summaryrefslogtreecommitdiff
path: root/flags/tests/long.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/long.ts
parentd29957ad17956016c35a04f5f1f98565e58e8a2e (diff)
Testing refactor (denoland/deno_std#240)
Original: https://github.com/denoland/deno_std/commit/e1d5c00279132aa639030c6c6d9b4e308bd4775e
Diffstat (limited to 'flags/tests/long.ts')
-rwxr-xr-xflags/tests/long.ts13
1 files changed, 7 insertions, 6 deletions
diff --git a/flags/tests/long.ts b/flags/tests/long.ts
index 9ea7df471..a67febe19 100755
--- a/flags/tests/long.ts
+++ b/flags/tests/long.ts
@@ -1,17 +1,18 @@
// 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 longOpts() {
- assertEqual(parse(["--bool"]), { bool: true, _: [] });
- assertEqual(parse(["--pow", "xixxle"]), { pow: "xixxle", _: [] });
- assertEqual(parse(["--pow=xixxle"]), { pow: "xixxle", _: [] });
- assertEqual(parse(["--host", "localhost", "--port", "555"]), {
+ assertEq(parse(["--bool"]), { bool: true, _: [] });
+ assertEq(parse(["--pow", "xixxle"]), { pow: "xixxle", _: [] });
+ assertEq(parse(["--pow=xixxle"]), { pow: "xixxle", _: [] });
+ assertEq(parse(["--host", "localhost", "--port", "555"]), {
host: "localhost",
port: 555,
_: []
});
- assertEqual(parse(["--host=localhost", "--port=555"]), {
+ assertEq(parse(["--host=localhost", "--port=555"]), {
host: "localhost",
port: 555,
_: []