Skip to content
Permalink
Browse files

test: fixed order of actual and expected arguments

PR-URL: #24178
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information...
kiyomizumia authored and codebytere committed Nov 6, 2018
1 parent e21d784 commit 87283615338fb89653e4f5a0ffaf32b9d62e4dd4
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/parallel/test-event-emitter-modify-in-emit.js
@@ -74,7 +74,7 @@ callbacks_called = [];

e.on('foo', callback2);
e.on('foo', callback3);
assert.strictEqual(2, e.listeners('foo').length);
assert.strictEqual(e.listeners('foo').length, 2);
e.emit('foo');
assert.deepStrictEqual(['callback2', 'callback3'], callbacks_called);
assert.strictEqual(0, e.listeners('foo').length);
assert.strictEqual(e.listeners('foo').length, 0);

0 comments on commit 8728361

Please sign in to comment.
You can’t perform that action at this time.