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 <anna@addaleax.net>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
Artur Daschevici authored and BridgeAR committed Nov 13, 2018
1 parent 92d2d79 commit 8b0626c
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 8b0626c

Please sign in to comment.