Skip to content

Commit

Permalink
test: add coverage for escape key switch case
Browse files Browse the repository at this point in the history
PR-URL: #24194
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
  • Loading branch information
Artur Daschevici authored and MylesBorins committed Dec 26, 2018
1 parent 53b12c3 commit 540b741
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/parallel/test-readline-keys.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@ addTest('\b\x7f\x1b\b\x1b\x7f \x1b ', [
{ name: 'space', sequence: '\x1b ', meta: true },
]);

// escape key
addTest('\x1b\x1b\x1b', [
{ name: 'escape', sequence: '\x1b\x1b\x1b', meta: true },
]);

// control keys
addTest('\x01\x0b\x10', [
{ name: 'a', sequence: '\x01', ctrl: true },
Expand Down

0 comments on commit 540b741

Please sign in to comment.