summaryrefslogtreecommitdiff
path: root/std/flags/dash_test.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-04-28 12:33:09 +0200
committerGitHub <noreply@github.com>2020-04-28 12:33:09 +0200
commit8feb30e3258ed9690eb850e3ca22842b260a0403 (patch)
tree6805bfe3df675c2c7f6a379093061c6b73d8365a /std/flags/dash_test.ts
parentb508e845671de9351c3f51755647371d76128d29 (diff)
BREAKING: remove overload of Deno.test() (#4951)
This commit removes overload of Deno.test() that accepted named function.
Diffstat (limited to 'std/flags/dash_test.ts')
-rwxr-xr-xstd/flags/dash_test.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/std/flags/dash_test.ts b/std/flags/dash_test.ts
index 3df169291..896305cc4 100755
--- a/std/flags/dash_test.ts
+++ b/std/flags/dash_test.ts
@@ -2,7 +2,7 @@
import { assertEquals } from "../testing/asserts.ts";
import { parse } from "./mod.ts";
-Deno.test(function hyphen(): void {
+Deno.test("hyphen", function (): void {
assertEquals(parse(["-n", "-"]), { n: "-", _: [] });
assertEquals(parse(["-"]), { _: ["-"] });
assertEquals(parse(["-f-"]), { f: "-", _: [] });
@@ -10,13 +10,13 @@ Deno.test(function hyphen(): void {
assertEquals(parse(["-s", "-"], { string: "s" }), { s: "-", _: [] });
});
-Deno.test(function doubleDash(): void {
+Deno.test("doubleDash", function (): void {
assertEquals(parse(["-a", "--", "b"]), { a: true, _: ["b"] });
assertEquals(parse(["--a", "--", "b"]), { a: true, _: ["b"] });
assertEquals(parse(["--a", "--", "b"]), { a: true, _: ["b"] });
});
-Deno.test(function moveArgsAfterDoubleDashIntoOwnArray(): void {
+Deno.test("moveArgsAfterDoubleDashIntoOwnArray", function (): void {
assertEquals(
parse(["--name", "John", "before", "--", "after"], { "--": true }),
{