Skip to content

Commit 8c7c4ac

Browse files
committed
Get test coverage back to 100%
1 parent 6c51db3 commit 8c7c4ac

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/error.test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ describe("Logger: Error with details", () => {
4343
stdErr = [];
4444
});
4545

46+
test("JSON: Check Error.toJSON()", (): void => {
47+
const error = new TestError("TestError");
48+
const errorToJson = JSON.stringify(error);
49+
50+
expect(errorToJson.length).toBeGreaterThan(0);
51+
});
52+
4653
test("Pretty: Error with details (stdErr)", (): void => {
4754
const error = new TestError("TestError");
4855
loggerPretty.warn(error);

0 commit comments

Comments
 (0)