From 8b0626c836b228133d3424620748b29710726be0 Mon Sep 17 00:00:00 2001 From: Artur Daschevici Date: Tue, 6 Nov 2018 17:11:18 +0000 Subject: [PATCH] test: add coverage for escape key switch case PR-URL: https://github.com/nodejs/node/pull/24194 Reviewed-By: Anna Henningsen Reviewed-By: Gireesh Punathil Reviewed-By: Ruben Bridgewater --- test/parallel/test-readline-keys.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/parallel/test-readline-keys.js b/test/parallel/test-readline-keys.js index f739999110b12f..c5b3cbf44cd496 100644 --- a/test/parallel/test-readline-keys.js +++ b/test/parallel/test-readline-keys.js @@ -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 },