summaryrefslogtreecommitdiff
path: root/std/flags/num_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/num_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/num_test.ts')
-rwxr-xr-xstd/flags/num_test.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/std/flags/num_test.ts b/std/flags/num_test.ts
index f8a0d11ac..a457ba959 100755
--- a/std/flags/num_test.ts
+++ b/std/flags/num_test.ts
@@ -2,7 +2,7 @@
import { assertEquals } from "../testing/asserts.ts";
import { parse } from "./mod.ts";
-Deno.test(function nums(): void {
+Deno.test("nums", function (): void {
const argv = parse([
"-x",
"1234",
@@ -32,7 +32,7 @@ Deno.test(function nums(): void {
assertEquals(typeof argv._[0], "number");
});
-Deno.test(function alreadyNumber(): void {
+Deno.test("alreadyNumber", function (): void {
const argv = parse(["-x", "1234", "789"]);
assertEquals(argv, { x: 1234, _: [789] });
assertEquals(typeof argv.x, "number");