Skip to content

Commit 540b741

Browse files
Artur DascheviciMylesBorins
authored andcommitted
test: add coverage for escape key switch case
PR-URL: #24194 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent 53b12c3 commit 540b741

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎test/parallel/test-readline-keys.js‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,11 @@ addTest('\b\x7f\x1b\b\x1b\x7f \x1b ', [
108108
{name: 'space',sequence: '\x1b ',meta: true},
109109
]);
110110

111+
// escape key
112+
addTest('\x1b\x1b\x1b',[
113+
{name: 'escape',sequence: '\x1b\x1b\x1b',meta: true},
114+
]);
115+
111116
// control keys
112117
addTest('\x01\x0b\x10',[
113118
{name: 'a',sequence: '\x01',ctrl: true},

0 commit comments

Comments
(0)