From 8feb30e3258ed9690eb850e3ca22842b260a0403 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 28 Apr 2020 12:33:09 +0200 Subject: BREAKING: remove overload of Deno.test() (#4951) This commit removes overload of Deno.test() that accepted named function. --- std/flags/dash_test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'std/flags/dash_test.ts') 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 }), { -- cgit v1.2.3