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: nodejs#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 BridgeAR committed Oct 15, 2018
1 parent bde6c4b commit d12ac38
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 d12ac38

Please sign in to comment.