Skip to content

Commit

Permalink
add null test for node
Browse files Browse the repository at this point in the history
  • Loading branch information
vktrl committed Aug 22, 2023
1 parent d510305 commit be1e549
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/Nodejs/5_pretty_Log_Types.test.ts
Expand Up @@ -45,6 +45,12 @@ describe("Pretty: Log Types", () => {
expect(getConsoleLog()).toContain("555");
});

test("null", (): void => {
const logger = new Logger({ type: "pretty" });
logger.log(1234, "testLevel", null);
expect(getConsoleLog()).toContain("null");
});

test("Array, stylePrettyLogs: false", (): void => {
const logger = new Logger({ type: "pretty", stylePrettyLogs: false });
logger.log(1234, "testLevel", [1, 2, 3, "test"]);
Expand Down

0 comments on commit be1e549

Please sign in to comment.