Skip to content

Commit 8728361

Browse files
kiyomizumiacodebytere
authored andcommitted
test: fixed order of actual and expected arguments
PR-URL: #24178 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent e21d784 commit 8728361

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-event-emitter-modify-in-emit.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ callbacks_called = [];
7474

7575
e.on('foo', callback2);
7676
e.on('foo', callback3);
77-
assert.strictEqual(2, e.listeners('foo').length);
77+
assert.strictEqual(e.listeners('foo').length, 2);
7878
e.emit('foo');
7979
assert.deepStrictEqual(['callback2', 'callback3'], callbacks_called);
80-
assert.strictEqual(0, e.listeners('foo').length);
80+
assert.strictEqual(e.listeners('foo').length, 0);

0 commit comments

Comments
 (0)