summaryrefslogtreecommitdiff
path: root/flags/tests/long.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2018-12-21 19:02:52 +0100
committerRyan Dahl <ry@tinyclouds.org>2018-12-21 13:02:52 -0500
commit0b9ab1249b4bc0a7ab34ee68ca9ea71d7cd7d2ff (patch)
treec1326825cf0fde6d58f255ee991012a158bcddf2 /flags/tests/long.ts
parenta31e44d1c8a5843882b3d974827e857070fd17c1 (diff)
Remove default export from flags module (denoland/deno_std#38)
Original: https://github.com/denoland/deno_std/commit/e674f7575a7a5a845d696416da2abae62525bc3e
Diffstat (limited to 'flags/tests/long.ts')
-rwxr-xr-xflags/tests/long.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/flags/tests/long.ts b/flags/tests/long.ts
index 876e6af2b..5a8cbf6c8 100755
--- a/flags/tests/long.ts
+++ b/flags/tests/long.ts
@@ -1,25 +1,25 @@
import { test, assertEqual } from "https://deno.land/x/testing/testing.ts";
-import parseArgs from "../index.ts";
+import { parse } from "../index.ts";
test(function longOpts() {
assertEqual(
- parseArgs([ '--bool' ]),
+ parse([ '--bool' ]),
{ bool : true, _ : [] },
);
assertEqual(
- parseArgs([ '--pow', 'xixxle' ]),
+ parse([ '--pow', 'xixxle' ]),
{ pow : 'xixxle', _ : [] },
);
assertEqual(
- parseArgs([ '--pow=xixxle' ]),
+ parse([ '--pow=xixxle' ]),
{ pow : 'xixxle', _ : [] },
);
assertEqual(
- parseArgs([ '--host', 'localhost', '--port', '555' ]),
+ parse([ '--host', 'localhost', '--port', '555' ]),
{ host : 'localhost', port : 555, _ : [] },
);
assertEqual(
- parseArgs([ '--host=localhost', '--port=555' ]),
+ parse([ '--host=localhost', '--port=555' ]),
{ host : 'localhost', port : 555, _ : [] },
);
});