diff --git a/test/simple/test-event-emitter-check-listener-leaks.js b/test/simple/test-event-emitter-check-listener-leaks.js index 3d45e01c72..d073e5de13 100644 --- a/test/simple/test-event-emitter-check-listener-leaks.js +++ b/test/simple/test-event-emitter-check-listener-leaks.js @@ -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));