summaryrefslogtreecommitdiff
path: root/std/log/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/test.ts
parent1397b8e0e7c85762e19d88fde103342bfa563360 (diff)
Update to Prettier 2 and use ES Private Fields (#4498)
Diffstat (limited to 'std/log/test.ts')
-rw-r--r--std/log/test.ts28
1 files changed, 14 insertions, 14 deletions
diff --git a/std/log/test.ts b/std/log/test.ts
index d4385968c..858f722e2 100644
--- a/std/log/test.ts
+++ b/std/log/test.ts
@@ -20,7 +20,7 @@ test(async function defaultHandlers(): Promise<void> {
INFO: log.info,
WARNING: log.warning,
ERROR: log.error,
- CRITICAL: log.critical
+ CRITICAL: log.critical,
};
for (const levelName in LogLevel) {
@@ -33,14 +33,14 @@ test(async function defaultHandlers(): Promise<void> {
await log.setup({
handlers: {
- default: handler
+ default: handler,
},
loggers: {
default: {
level: levelName,
- handlers: ["default"]
- }
- }
+ handlers: ["default"],
+ },
+ },
});
logger("foo");
@@ -55,14 +55,14 @@ test(async function getLogger(): Promise<void> {
await log.setup({
handlers: {
- default: handler
+ default: handler,
},
loggers: {
default: {
level: "DEBUG",
- handlers: ["default"]
- }
- }
+ handlers: ["default"],
+ },
+ },
});
const logger = log.getLogger();
@@ -76,14 +76,14 @@ test(async function getLoggerWithName(): Promise<void> {
await log.setup({
handlers: {
- foo: fooHandler
+ foo: fooHandler,
},
loggers: {
bar: {
level: "INFO",
- handlers: ["foo"]
- }
- }
+ handlers: ["foo"],
+ },
+ },
});
const logger = log.getLogger("bar");
@@ -95,7 +95,7 @@ test(async function getLoggerWithName(): Promise<void> {
test(async function getLoggerUnknown(): Promise<void> {
await log.setup({
handlers: {},
- loggers: {}
+ loggers: {},
});
const logger = log.getLogger("nonexistent");