From 0b9ab1249b4bc0a7ab34ee68ca9ea71d7cd7d2ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Fri, 21 Dec 2018 19:02:52 +0100 Subject: Remove default export from flags module (denoland/deno_std#38) Original: https://github.com/denoland/deno_std/commit/e674f7575a7a5a845d696416da2abae62525bc3e --- flags/tests/long.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'flags/tests/long.ts') 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, _ : [] }, ); }); -- cgit v1.2.3