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 <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 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.