Skip to content

Commit b062fd2

Browse files
committed
chore: update tests
1 parent 30a7c73 commit b062fd2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/index.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,10 @@ function makeLogger() {
7171

7272
describe("ReplaneError", () => {
7373
it("has correct name", () => {
74-
const err = new ReplaneError("boom");
74+
const err = new ReplaneError({ message: "boom", code: "unknown" });
7575
expect(err.name).toBe("ReplaneError");
7676
expect(err.message).toBe("boom");
77+
expect(err.code).toBe("unknown");
7778
});
7879
});
7980

0 commit comments

Comments
 (0)