diff options
Diffstat (limited to 'flags/tests/long.ts')
| -rwxr-xr-x | flags/tests/long.ts | 33 |
1 files changed, 13 insertions, 20 deletions
diff --git a/flags/tests/long.ts b/flags/tests/long.ts index 5a8cbf6c8..57e48ecbe 100755 --- a/flags/tests/long.ts +++ b/flags/tests/long.ts @@ -2,24 +2,17 @@ import { test, assertEqual } from "https://deno.land/x/testing/testing.ts"; import { parse } from "../index.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' ]), - { host : 'localhost', port : 555, _ : [] }, - ); - assertEqual( - parse([ '--host=localhost', '--port=555' ]), - { host : 'localhost', port : 555, _ : [] }, - ); + assertEqual(parse(["--bool"]), { bool: true, _: [] }); + assertEqual(parse(["--pow", "xixxle"]), { pow: "xixxle", _: [] }); + assertEqual(parse(["--pow=xixxle"]), { pow: "xixxle", _: [] }); + assertEqual(parse(["--host", "localhost", "--port", "555"]), { + host: "localhost", + port: 555, + _: [] + }); + assertEqual(parse(["--host=localhost", "--port=555"]), { + host: "localhost", + port: 555, + _: [] + }); }); |
