Skip to content

Commit 0eb0067

Browse files
committed
chore(tests): Add test for error without a listener
1 parent a2b0bf3 commit 0eb0067

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Parser.spec.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ describe("API", () => {
2323
new Error(".end() after done!")
2424
);
2525

26+
// Should ignore the error if there is no callback
27+
delete cbs.onerror;
28+
p.write("foo");
29+
2630
p.reset();
2731

2832
// Remove method

0 commit comments

Comments
 (0)