diff options
Diffstat (limited to 'log/handlers_test.ts')
| -rw-r--r-- | log/handlers_test.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/log/handlers_test.ts b/log/handlers_test.ts index 9cbf70be6..329541fa1 100644 --- a/log/handlers_test.ts +++ b/log/handlers_test.ts @@ -12,7 +12,7 @@ class TestHandler extends BaseHandler { } } -test(function simpleHandler() { +test(function simpleHandler(): void { const cases = new Map<number, string[]>([ [ LogLevel.DEBUG, @@ -62,7 +62,7 @@ test(function simpleHandler() { } }); -test(function testFormatterAsString() { +test(function testFormatterAsString(): void { const handler = new TestHandler("DEBUG", { formatter: "test {levelName} {msg}" }); @@ -78,9 +78,9 @@ test(function testFormatterAsString() { assertEquals(handler.messages, ["test DEBUG Hello, world!"]); }); -test(function testFormatterAsFunction() { +test(function testFormatterAsFunction(): void { const handler = new TestHandler("DEBUG", { - formatter: logRecord => + formatter: (logRecord): string => `fn formmatter ${logRecord.levelName} ${logRecord.msg}` }); |
