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:
kiyomizumia 2018-11-06 16:21:23 +00:00 committed by Gireesh Punathil
parent 1d9ba7b19e
commit e39aba193c

View File

@ -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);