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/log/handlers_test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'std/log/handlers_test.ts') diff --git a/std/log/handlers_test.ts b/std/log/handlers_test.ts index 561b5c04a..b69ef6eab 100644 --- a/std/log/handlers_test.ts +++ b/std/log/handlers_test.ts @@ -22,7 +22,7 @@ class TestHandler extends BaseHandler { } } -test(function simpleHandler(): void { +test("simpleHandler", function (): void { const cases = new Map([ [ LogLevels.DEBUG, @@ -68,7 +68,7 @@ test(function simpleHandler(): void { } }); -test(function testFormatterAsString(): void { +test("testFormatterAsString", function (): void { const handler = new TestHandler("DEBUG", { formatter: "test {levelName} {msg}", }); @@ -78,7 +78,7 @@ test(function testFormatterAsString(): void { assertEquals(handler.messages, ["test DEBUG Hello, world!"]); }); -test(function testFormatterAsFunction(): void { +test("testFormatterAsFunction", function (): void { const handler = new TestHandler("DEBUG", { formatter: (logRecord): string => `fn formatter ${logRecord.levelName} ${logRecord.msg}`, -- cgit v1.2.3