mirror of https://github.com/nodejs/node.git
test: EventEmitter#setMaxListeners() returns this
Add a regression test for commit f8d8122
.
pull/5010/head
parent
f8d81222e8
commit
4c02282c7e
|
@ -82,3 +82,6 @@ e.on('uno', function() {});
|
|||
assert.ok(!e._events['uno'].hasOwnProperty('warned'));
|
||||
e.on('uno', function() {});
|
||||
assert.ok(e._events['uno'].hasOwnProperty('warned'));
|
||||
|
||||
// chainable
|
||||
assert.strictEqual(e, e.setMaxListeners(1));
|
||||
|
|
Loading…
Reference in New Issue