Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
tests: refactor to use arrow functions
Replaced existing functions with arrow functions wherever possible
  • Loading branch information
shubheksha committed Feb 15, 2017
commit b62afd35c7567941d8ab18447bdc7e6d663530c2
6 changes: 3 additions & 3 deletions test/parallel/test-event-emitter-max-listeners.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ e.on('maxListeners', common.mustCall(function() {}));
e.setMaxListeners(42);

assert.throws(() => e.setMaxListeners(NaN),
common.expectsError('ERR_INVALID_ARG_TYPE', TypeError));
common.expectsError('ERR_INVALID_ARG_TYPE', TypeError));

assert.throws(() => e.setMaxListeners(-1),
common.expectsError('ERR_INVALID_ARG_TYPE', TypeError));
common.expectsError('ERR_INVALID_ARG_TYPE', TypeError));

assert.throws(() => e.setMaxListeners('and even this'),
common.expectsError('ERR_INVALID_ARG_TYPE', TypeError));
common.expectsError('ERR_INVALID_ARG_TYPE', TypeError));

e.emit('maxListeners');