Skip to content

Commit

Permalink
test: fixed order of actual and expected arguments
Browse files Browse the repository at this point in the history
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 BridgeAR committed Nov 13, 2018
1 parent 77163a9 commit 1a86499
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-event-emitter-modify-in-emit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 1a86499

Please sign in to comment.