diff options
| author | Ryan Dahl <ry@tinyclouds.org> | 2018-12-24 10:28:01 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-12-24 10:28:01 -0500 |
| commit | b5f6f972342dbc5e1a4a3116743d812ec6baddea (patch) | |
| tree | be227d05145ed3cfede8d5400bfdc79ce2d3a67c /flags/tests/all_bool.ts | |
| parent | a5ad3868870f54c32b95c3e473cb86973ec53493 (diff) | |
Format (denoland/deno_std#42)
Original: https://github.com/denoland/deno_std/commit/9b8923844f643fa5e04ea85ce1df835c10e09b7d
Diffstat (limited to 'flags/tests/all_bool.ts')
| -rwxr-xr-x | flags/tests/all_bool.ts | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/flags/tests/all_bool.ts b/flags/tests/all_bool.ts index aaa936bf6..879de5cc0 100755 --- a/flags/tests/all_bool.ts +++ b/flags/tests/all_bool.ts @@ -3,30 +3,30 @@ import { parse } from "../index.ts"; // flag boolean true (default all --args to boolean) test(function flagBooleanTrue() { - const argv = parse(['moo', '--honk', 'cow'], { - boolean: true - }); - - assertEqual(argv, { - honk: true, - _: ['moo', 'cow'] - }); - - assertEqual(typeof argv.honk, 'boolean'); + const argv = parse(["moo", "--honk", "cow"], { + boolean: true + }); + + assertEqual(argv, { + honk: true, + _: ["moo", "cow"] + }); + + assertEqual(typeof argv.honk, "boolean"); }); // flag boolean true only affects double hyphen arguments without equals signs test(function flagBooleanTrueOnlyAffectsDoubleDash() { - var argv = parse(['moo', '--honk', 'cow', '-p', '55', '--tacos=good'], { - boolean: true - }); - - assertEqual(argv, { - honk: true, - tacos: 'good', - p: 55, - _: ['moo', 'cow'] - }); - - assertEqual(typeof argv.honk, 'boolean'); + var argv = parse(["moo", "--honk", "cow", "-p", "55", "--tacos=good"], { + boolean: true + }); + + assertEqual(argv, { + honk: true, + tacos: "good", + p: 55, + _: ["moo", "cow"] + }); + + assertEqual(typeof argv.honk, "boolean"); }); |
