Skip to content
Closed
Changes from all commits
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
test: fixed order of actual and expected arguments
  • Loading branch information
kiyomizumia committed Nov 6, 2018
commit 31921e228fedb7a0937712098defdfdd9d8e163a
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);