From 87283615338fb89653e4f5a0ffaf32b9d62e4dd4 Mon Sep 17 00:00:00 2001 From: kiyomizumia Date: Tue, 6 Nov 2018 16:21:23 +0000 Subject: [PATCH] test: fixed order of actual and expected arguments PR-URL: https://github.com/nodejs/node/pull/24178 Reviewed-By: Colin Ihrig Reviewed-By: Gireesh Punathil Reviewed-By: Ruben Bridgewater --- test/parallel/test-event-emitter-modify-in-emit.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-event-emitter-modify-in-emit.js b/test/parallel/test-event-emitter-modify-in-emit.js index 9c28fecbdd8c4c..995fa01d11a1a8 100644 --- a/test/parallel/test-event-emitter-modify-in-emit.js +++ b/test/parallel/test-event-emitter-modify-in-emit.js @@ -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);