diff options
Diffstat (limited to 'flags/tests/long.ts')
-rwxr-xr-x | flags/tests/long.ts | 12 |
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, _ : [] }, ); }); |