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 jasnell committed Oct 17, 2018
1 parent bea0819 commit 7298f8a
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 7298f8a

Please sign in to comment.