Skip to content

Commit

Permalink
Get test coverage back to 100%
Browse files Browse the repository at this point in the history
  • Loading branch information
terehov committed Dec 15, 2020
1 parent 6c51db3 commit 8c7c4ac
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/error.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ describe("Logger: Error with details", () => {
stdErr = [];
});

test("JSON: Check Error.toJSON()", (): void => {
const error = new TestError("TestError");
const errorToJson = JSON.stringify(error);

expect(errorToJson.length).toBeGreaterThan(0);
});

test("Pretty: Error with details (stdErr)", (): void => {
const error = new TestError("TestError");
loggerPretty.warn(error);
Expand Down

0 comments on commit 8c7c4ac

Please sign in to comment.