summaryrefslogtreecommitdiff
path: root/std/flags/bool_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/flags/bool_test.ts')
-rwxr-xr-xstd/flags/bool_test.ts28
1 files changed, 14 insertions, 14 deletions
diff --git a/std/flags/bool_test.ts b/std/flags/bool_test.ts
index f2d88e617..a99be7366 100755
--- a/std/flags/bool_test.ts
+++ b/std/flags/bool_test.ts
@@ -2,7 +2,7 @@
import { assertEquals } from "../testing/asserts.ts";
import { parse } from "./mod.ts";
-Deno.test(function flagBooleanDefaultFalse(): void {
+Deno.test("flagBooleanDefaultFalse", function (): void {
const argv = parse(["moo"], {
boolean: ["t", "verbose"],
default: { verbose: false, t: false },
@@ -18,7 +18,7 @@ Deno.test(function flagBooleanDefaultFalse(): void {
assertEquals(typeof argv.t, "boolean");
});
-Deno.test(function booleanGroups(): void {
+Deno.test("booleanGroups", function (): void {
const argv = parse(["-x", "-z", "one", "two", "three"], {
boolean: ["x", "y", "z"],
});
@@ -35,7 +35,7 @@ Deno.test(function booleanGroups(): void {
assertEquals(typeof argv.z, "boolean");
});
-Deno.test(function booleanAndAliasWithChainableApi(): void {
+Deno.test("booleanAndAliasWithChainableApi", function (): void {
const aliased = ["-h", "derp"];
const regular = ["--herp", "derp"];
const aliasedArgv = parse(aliased, {
@@ -56,7 +56,7 @@ Deno.test(function booleanAndAliasWithChainableApi(): void {
assertEquals(propertyArgv, expected);
});
-Deno.test(function booleanAndAliasWithOptionsHash(): void {
+Deno.test("booleanAndAliasWithOptionsHash", function (): void {
const aliased = ["-h", "derp"];
const regular = ["--herp", "derp"];
const opts = {
@@ -74,7 +74,7 @@ Deno.test(function booleanAndAliasWithOptionsHash(): void {
assertEquals(propertyArgv, expected);
});
-Deno.test(function booleanAndAliasArrayWithOptionsHash(): void {
+Deno.test("booleanAndAliasArrayWithOptionsHash", function (): void {
const aliased = ["-h", "derp"];
const regular = ["--herp", "derp"];
const alt = ["--harp", "derp"];
@@ -96,7 +96,7 @@ Deno.test(function booleanAndAliasArrayWithOptionsHash(): void {
assertEquals(altPropertyArgv, expected);
});
-Deno.test(function booleanAndAliasUsingExplicitTrue(): void {
+Deno.test("booleanAndAliasUsingExplicitTrue", function (): void {
const aliased = ["-h", "true"];
const regular = ["--herp", "true"];
const opts = {
@@ -117,7 +117,7 @@ Deno.test(function booleanAndAliasUsingExplicitTrue(): void {
// regression, see https://github.com/substack/node-optimist/issues/71
// boolean and --x=true
-Deno.test(function booleanAndNonBoolean(): void {
+Deno.test("booleanAndNonBoolean", function (): void {
const parsed = parse(["--boool", "--other=true"], {
boolean: "boool",
});
@@ -133,7 +133,7 @@ Deno.test(function booleanAndNonBoolean(): void {
assertEquals(parsed2.other, "false");
});
-Deno.test(function booleanParsingTrue(): void {
+Deno.test("booleanParsingTrue", function (): void {
const parsed = parse(["--boool=true"], {
default: {
boool: false,
@@ -144,7 +144,7 @@ Deno.test(function booleanParsingTrue(): void {
assertEquals(parsed.boool, true);
});
-Deno.test(function booleanParsingFalse(): void {
+Deno.test("booleanParsingFalse", function (): void {
const parsed = parse(["--boool=false"], {
default: {
boool: true,
@@ -155,7 +155,7 @@ Deno.test(function booleanParsingFalse(): void {
assertEquals(parsed.boool, false);
});
-Deno.test(function booleanParsingTrueLike(): void {
+Deno.test("booleanParsingTrueLike", function (): void {
const parsed = parse(["-t", "true123"], { boolean: ["t"] });
assertEquals(parsed.t, true);
@@ -166,7 +166,7 @@ Deno.test(function booleanParsingTrueLike(): void {
assertEquals(parsed3.t, true);
});
-Deno.test(function booleanNegationAfterBoolean(): void {
+Deno.test("booleanNegationAfterBoolean", function (): void {
const parsed = parse(["--foo", "--no-foo"], { boolean: ["foo"] });
assertEquals(parsed.foo, false);
@@ -174,7 +174,7 @@ Deno.test(function booleanNegationAfterBoolean(): void {
assertEquals(parsed2.foo, false);
});
-Deno.test(function booleanAfterBooleanNegation(): void {
+Deno.test("booleanAfterBooleanNegation", function (): void {
const parsed = parse(["--no--foo", "--foo"], { boolean: ["foo"] });
assertEquals(parsed.foo, true);
@@ -182,7 +182,7 @@ Deno.test(function booleanAfterBooleanNegation(): void {
assertEquals(parsed2.foo, true);
});
-Deno.test(function latestFlagIsBooleanNegation(): void {
+Deno.test("latestFlagIsBooleanNegation", function (): void {
const parsed = parse(["--no-foo", "--foo", "--no-foo"], { boolean: ["foo"] });
assertEquals(parsed.foo, false);
@@ -192,7 +192,7 @@ Deno.test(function latestFlagIsBooleanNegation(): void {
assertEquals(parsed2.foo, false);
});
-Deno.test(function latestFlagIsBoolean(): void {
+Deno.test("latestFlagIsBoolean", function (): void {
const parsed = parse(["--foo", "--no-foo", "--foo"], { boolean: ["foo"] });
assertEquals(parsed.foo, true);