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 <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
  • Loading branch information
Joe Grosspietsch authored and addaleax committed Oct 20, 2018
1 parent 6643ad9 commit 952a12c
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 952a12c

Please sign in to comment.