aboutsummaryrefslogtreecommitdiff
path: root/src/util/logger.test.ts
diff options
context:
space:
mode:
authorKevin J Hoerr <kjhoerr@protonmail.com>2022-04-04 01:13:14 +0000
committerKevin J Hoerr <kjhoerr@protonmail.com>2022-04-04 01:13:14 +0000
commita87eb1608d354a6e9c8170e0fdc432a5f556c445 (patch)
treea36a9342bd53ce3c8df3885cc342f3b6d5f16aa4 /src/util/logger.test.ts
parentaa045248645094e77d529bd6d048ff83619c352e (diff)
downloadao-coverage-a87eb1608d354a6e9c8170e0fdc432a5f556c445.tar.gz
ao-coverage-a87eb1608d354a6e9c8170e0fdc432a5f556c445.tar.bz2
ao-coverage-a87eb1608d354a6e9c8170e0fdc432a5f556c445.zip
Refactor dependency on env and add comments
Diffstat (limited to 'src/util/logger.test.ts')
-rw-r--r--src/util/logger.test.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/logger.test.ts b/src/util/logger.test.ts
index a673bad..a7e81c1 100644
--- a/src/util/logger.test.ts
+++ b/src/util/logger.test.ts
@@ -12,7 +12,7 @@ describe("Logger configurer", () => {
};
// Act
- const result = configureLogger(clazz);
+ const result = configureLogger(clazz, adapter.level);
const actual = result.format.transform(Object.assign({}, adapter));
// Assert
@@ -34,7 +34,7 @@ describe("Logger configurer", () => {
};
// Act
- const result = configureLogger(label);
+ const result = configureLogger(label, adapter.level);
const actual = result.format.transform(Object.assign({}, adapter));
// Assert
@@ -51,7 +51,7 @@ describe("Logger configurer", () => {
const label = "aaa";
// Act
- const result = configureLogger(label);
+ const result = configureLogger(label, "info");
// Assert
expect(result.transports).toBeInstanceOf(Array);