From d12ac38c4d14cba4cc2ffc92db136fa152f1aad0 Mon Sep 17 00:00:00 2001 From: Joe Grosspietsch Date: Fri, 12 Oct 2018 10:57:10 -0700 Subject: [PATCH] test: fix strictEqual assertion order on readline tests PR-URL: https://github.com/nodejs/node/pull/23561 Reviewed-By: James M Snell Reviewed-By: Ruben Bridgewater Reviewed-By: Trivikram Kamat Reviewed-By: Colin Ihrig Reviewed-By: Gireesh Punathil --- test/parallel/test-readline.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-readline.js b/test/parallel/test-readline.js index 82bf74549b2343..d464fdc440c58b 100644 --- a/test/parallel/test-readline.js +++ b/test/parallel/test-readline.js @@ -143,7 +143,7 @@ const assert = require('assert'); '' ].forEach(function(expectedLine) { rl.write.apply(rl, key.xterm.metad); - assert.strictEqual(0, rl.cursor); - assert.strictEqual(expectedLine, rl.line); + assert.strictEqual(rl.cursor, 0); + assert.strictEqual(rl.line, expectedLine); }); }