summaryrefslogtreecommitdiff
path: root/std/flags/short_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/short_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/short_test.ts')
-rwxr-xr-xstd/flags/short_test.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/std/flags/short_test.ts b/std/flags/short_test.ts
index 6305bbb94..d152a3736 100755
--- a/std/flags/short_test.ts
+++ b/std/flags/short_test.ts
@@ -2,12 +2,12 @@
import { assertEquals } from "../testing/asserts.ts";
import { parse } from "./mod.ts";
-Deno.test(function numbericShortArgs(): void {
+Deno.test("numbericShortArgs", function (): void {
assertEquals(parse(["-n123"]), { n: 123, _: [] });
assertEquals(parse(["-123", "456"]), { 1: true, 2: true, 3: 456, _: [] });
});
-Deno.test(function short(): void {
+Deno.test("short", function (): void {
assertEquals(parse(["-b"]), { b: true, _: [] });
assertEquals(parse(["foo", "bar", "baz"]), { _: ["foo", "bar", "baz"] });
assertEquals(parse(["-cats"]), { c: true, a: true, t: true, s: true, _: [] });
@@ -26,7 +26,7 @@ Deno.test(function short(): void {
});
});
-Deno.test(function mixedShortBoolAndCapture(): void {
+Deno.test("mixedShortBoolAndCapture", function (): void {
assertEquals(parse(["-h", "localhost", "-fp", "555", "script.js"]), {
f: true,
p: 555,
@@ -35,7 +35,7 @@ Deno.test(function mixedShortBoolAndCapture(): void {
});
});
-Deno.test(function shortAndLong(): void {
+Deno.test("shortAndLong", function (): void {
assertEquals(parse(["-h", "localhost", "-fp", "555", "script.js"]), {
f: true,
p: 555,