summaryrefslogtreecommitdiff
path: root/std/flags/all_bool_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/flags/all_bool_test.ts')
-rwxr-xr-xstd/flags/all_bool_test.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/std/flags/all_bool_test.ts b/std/flags/all_bool_test.ts
index 6516f48ed..cb5a36710 100755
--- a/std/flags/all_bool_test.ts
+++ b/std/flags/all_bool_test.ts
@@ -5,12 +5,12 @@ import { parse } from "./mod.ts";
// flag boolean true (default all --args to boolean)
Deno.test(function flagBooleanTrue(): void {
const argv = parse(["moo", "--honk", "cow"], {
- boolean: true
+ boolean: true,
});
assertEquals(argv, {
honk: true,
- _: ["moo", "cow"]
+ _: ["moo", "cow"],
});
assertEquals(typeof argv.honk, "boolean");
@@ -19,14 +19,14 @@ Deno.test(function flagBooleanTrue(): void {
// flag boolean true only affects double hyphen arguments without equals signs
Deno.test(function flagBooleanTrueOnlyAffectsDoubleDash(): void {
const argv = parse(["moo", "--honk", "cow", "-p", "55", "--tacos=good"], {
- boolean: true
+ boolean: true,
});
assertEquals(argv, {
honk: true,
tacos: "good",
p: 55,
- _: ["moo", "cow"]
+ _: ["moo", "cow"],
});
assertEquals(typeof argv.honk, "boolean");