Skip to content

Commit

Permalink
test: add test case for listeners
Browse files Browse the repository at this point in the history
PR-URL: #56282
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Jason Zhang <[email protected]>
Reviewed-By: Jake Yuesong Li <[email protected]>
  • Loading branch information
origranot authored and lpinca committed Dec 19, 2024
1 parent 58b7204 commit a85ef6a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/parallel/test-event-emitter-listeners.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ function listener4() {
assert.deepStrictEqual(ee.listeners('foo'), []);
}

{
const ee = new events.EventEmitter();
assert.deepStrictEqual(ee.listeners(), []);
}

{
class TestStream extends events.EventEmitter {}
const s = new TestStream();
Expand Down

0 comments on commit a85ef6a

Please sign in to comment.