diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-04-28 12:33:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-28 12:33:09 +0200 |
commit | 8feb30e3258ed9690eb850e3ca22842b260a0403 (patch) | |
tree | 6805bfe3df675c2c7f6a379093061c6b73d8365a /std/log/handlers_test.ts | |
parent | b508e845671de9351c3f51755647371d76128d29 (diff) |
BREAKING: remove overload of Deno.test() (#4951)
This commit removes overload of Deno.test() that accepted named
function.
Diffstat (limited to 'std/log/handlers_test.ts')
-rw-r--r-- | std/log/handlers_test.ts | 6 |
1 files changed, 3 insertions, 3 deletions
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<number, string[]>([ [ 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}`, |