test: fixed order of actual and expected arguments
PR-URL: https://github.com/nodejs/node/pull/24178 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
parent
1d9ba7b19e
commit
e39aba193c
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user