summaryrefslogtreecommitdiff
path: root/std/log/handlers_test.ts
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2020-03-29 04:03:49 +1100
committerGitHub <noreply@github.com>2020-03-28 13:03:49 -0400
commitbced52505f32d6cca4f944bb610a8a26767908a8 (patch)
treeda49a5df4b7bd6f8306248069228cd6bd0db1303 /std/log/handlers_test.ts
parent1397b8e0e7c85762e19d88fde103342bfa563360 (diff)
Update to Prettier 2 and use ES Private Fields (#4498)
Diffstat (limited to 'std/log/handlers_test.ts')
-rw-r--r--std/log/handlers_test.ts22
1 files changed, 11 insertions, 11 deletions
diff --git a/std/log/handlers_test.ts b/std/log/handlers_test.ts
index 693d2a485..4feffdaf9 100644
--- a/std/log/handlers_test.ts
+++ b/std/log/handlers_test.ts
@@ -21,8 +21,8 @@ test(function simpleHandler(): void {
"INFO info-test",
"WARNING warning-test",
"ERROR error-test",
- "CRITICAL critical-test"
- ]
+ "CRITICAL critical-test",
+ ],
],
[
LogLevel.INFO,
@@ -30,15 +30,15 @@ test(function simpleHandler(): void {
"INFO info-test",
"WARNING warning-test",
"ERROR error-test",
- "CRITICAL critical-test"
- ]
+ "CRITICAL critical-test",
+ ],
],
[
LogLevel.WARNING,
- ["WARNING warning-test", "ERROR error-test", "CRITICAL critical-test"]
+ ["WARNING warning-test", "ERROR error-test", "CRITICAL critical-test"],
],
[LogLevel.ERROR, ["ERROR error-test", "CRITICAL critical-test"]],
- [LogLevel.CRITICAL, ["CRITICAL critical-test"]]
+ [LogLevel.CRITICAL, ["CRITICAL critical-test"]],
]);
for (const [testCase, messages] of cases.entries()) {
@@ -52,7 +52,7 @@ test(function simpleHandler(): void {
args: [],
datetime: new Date(),
level: level,
- levelName: levelName
+ levelName: levelName,
});
}
@@ -64,7 +64,7 @@ test(function simpleHandler(): void {
test(function testFormatterAsString(): void {
const handler = new TestHandler("DEBUG", {
- formatter: "test {levelName} {msg}"
+ formatter: "test {levelName} {msg}",
});
handler.handle({
@@ -72,7 +72,7 @@ test(function testFormatterAsString(): void {
args: [],
datetime: new Date(),
level: LogLevel.DEBUG,
- levelName: "DEBUG"
+ levelName: "DEBUG",
});
assertEquals(handler.messages, ["test DEBUG Hello, world!"]);
@@ -81,7 +81,7 @@ test(function testFormatterAsString(): void {
test(function testFormatterAsFunction(): void {
const handler = new TestHandler("DEBUG", {
formatter: (logRecord): string =>
- `fn formmatter ${logRecord.levelName} ${logRecord.msg}`
+ `fn formmatter ${logRecord.levelName} ${logRecord.msg}`,
});
handler.handle({
@@ -89,7 +89,7 @@ test(function testFormatterAsFunction(): void {
args: [],
datetime: new Date(),
level: LogLevel.ERROR,
- levelName: "ERROR"
+ levelName: "ERROR",
});
assertEquals(handler.messages, ["fn formmatter ERROR Hello, world!"]);