Skip to content

Commit

Permalink
test: add test case for listeners
Browse files Browse the repository at this point in the history
origranot committed Dec 17, 2024
1 parent a37cb7c commit 8081b2c
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
@@ -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();

0 comments on commit 8081b2c

Please sign in to comment.