test: EventEmitter#setMaxListeners() returns this
Add a regression test for commit f8d8122.
This commit is contained in:
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…
x
Reference in New Issue
Block a user