Skip to content

Commit

Permalink
test: fixed order of actual and expected arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
kiyomizumia committed Nov 6, 2018
1 parent 5850220 commit 31921e2
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 31921e2

Please sign in to comment.