Skip to content

Commit

Permalink
chore(tests): Add test for error without a listener
Browse files Browse the repository at this point in the history
  • Loading branch information
fb55 committed Aug 24, 2021
1 parent a2b0bf3 commit 0eb0067
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Parser.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ describe("API", () => {
new Error(".end() after done!")
);

// Should ignore the error if there is no callback
delete cbs.onerror;
p.write("foo");

p.reset();

// Remove method
Expand Down

0 comments on commit 0eb0067

Please sign in to comment.