Skip to content

Commit

Permalink
test: fix strictEqual assertion order on readline tests
Browse files Browse the repository at this point in the history
PR-URL: #23561
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
  • Loading branch information
Joe Grosspietsch authored and rvagg committed Nov 28, 2018
1 parent 9960be4 commit a51137f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-readline.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
}

0 comments on commit a51137f

Please sign in to comment.