summaryrefslogtreecommitdiff
path: root/flags/bool_test.ts
diff options
context:
space:
mode:
authorVincent LE GOFF <g_n_s@hotmail.fr>2019-04-24 13:41:23 +0200
committerRyan Dahl <ry@tinyclouds.org>2019-04-24 07:41:22 -0400
commitdcd01dd02530df0e799eb4227087680ffeb80d74 (patch)
tree8cc1dec75dd17c326fea6d7fe471b7e7a31032f7 /flags/bool_test.ts
parente1f7a60bb326f8299f339635c0738d28431afa0a (diff)
Eslint fixes (denoland/deno_std#356)
Make warnings fail Original: https://github.com/denoland/deno_std/commit/4543b563a9a01c8c168aafcbfd9d4634effba7fc
Diffstat (limited to 'flags/bool_test.ts')
-rwxr-xr-xflags/bool_test.ts18
1 files changed, 9 insertions, 9 deletions
diff --git a/flags/bool_test.ts b/flags/bool_test.ts
index 820393543..a33e9be0b 100755
--- a/flags/bool_test.ts
+++ b/flags/bool_test.ts
@@ -3,7 +3,7 @@ import { test } from "../testing/mod.ts";
import { assertEquals } from "../testing/asserts.ts";
import { parse } from "./mod.ts";
-test(function flagBooleanDefaultFalse() {
+test(function flagBooleanDefaultFalse(): void {
const argv = parse(["moo"], {
boolean: ["t", "verbose"],
default: { verbose: false, t: false }
@@ -19,7 +19,7 @@ test(function flagBooleanDefaultFalse() {
assertEquals(typeof argv.t, "boolean");
});
-test(function booleanGroups() {
+test(function booleanGroups(): void {
const argv = parse(["-x", "-z", "one", "two", "three"], {
boolean: ["x", "y", "z"]
});
@@ -36,7 +36,7 @@ test(function booleanGroups() {
assertEquals(typeof argv.z, "boolean");
});
-test(function booleanAndAliasWithChainableApi() {
+test(function booleanAndAliasWithChainableApi(): void {
const aliased = ["-h", "derp"];
const regular = ["--herp", "derp"];
const aliasedArgv = parse(aliased, {
@@ -57,7 +57,7 @@ test(function booleanAndAliasWithChainableApi() {
assertEquals(propertyArgv, expected);
});
-test(function booleanAndAliasWithOptionsHash() {
+test(function booleanAndAliasWithOptionsHash(): void {
const aliased = ["-h", "derp"];
const regular = ["--herp", "derp"];
const opts = {
@@ -75,7 +75,7 @@ test(function booleanAndAliasWithOptionsHash() {
assertEquals(propertyArgv, expected);
});
-test(function booleanAndAliasArrayWithOptionsHash() {
+test(function booleanAndAliasArrayWithOptionsHash(): void {
const aliased = ["-h", "derp"];
const regular = ["--herp", "derp"];
const alt = ["--harp", "derp"];
@@ -97,7 +97,7 @@ test(function booleanAndAliasArrayWithOptionsHash() {
assertEquals(altPropertyArgv, expected);
});
-test(function booleanAndAliasUsingExplicitTrue() {
+test(function booleanAndAliasUsingExplicitTrue(): void {
const aliased = ["-h", "true"];
const regular = ["--herp", "true"];
const opts = {
@@ -118,7 +118,7 @@ test(function booleanAndAliasUsingExplicitTrue() {
// regression, see https://github.com/substack/node-optimist/issues/71
// boolean and --x=true
-test(function booleanAndNonBoolean() {
+test(function booleanAndNonBoolean(): void {
const parsed = parse(["--boool", "--other=true"], {
boolean: "boool"
});
@@ -134,7 +134,7 @@ test(function booleanAndNonBoolean() {
assertEquals(parsed2.other, "false");
});
-test(function booleanParsingTrue() {
+test(function booleanParsingTrue(): void {
const parsed = parse(["--boool=true"], {
default: {
boool: false
@@ -145,7 +145,7 @@ test(function booleanParsingTrue() {
assertEquals(parsed.boool, true);
});
-test(function booleanParsingFalse() {
+test(function booleanParsingFalse(): void {
const parsed = parse(["--boool=false"], {
default: {
boool: true