From 770a015762058412de05fa398cdf7d5bf721769c Mon Sep 17 00:00:00 2001 From: eladkeyshawn Date: Sat, 17 Apr 2021 22:25:55 +0300 Subject: [PATCH] repl: fix test fail without ssl or intl --- test/parallel/test-repl-history-navigation.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/parallel/test-repl-history-navigation.js b/test/parallel/test-repl-history-navigation.js index cb19c694b509b4..11fe5607bbbc80 100644 --- a/test/parallel/test-repl-history-navigation.js +++ b/test/parallel/test-repl-history-navigation.js @@ -559,14 +559,14 @@ const tests = [ env: { NODE_REPL_HISTORY: defaultHistoryPath }, test: ['const util = {}', ENTER, 'ut', RIGHT, ENTER], - expected: [ + expected: common.hasIntl && common.hasCrypto ? [ prompt, ...'const util = {}', 'undefined\n', prompt, ...'ut', ' // il', '\n// {}', 'il', '\n// {}', '{}\n', prompt, - ], + ] : [], clean: false }, { @@ -577,7 +577,7 @@ const tests = [ 'globalThis.util = {}', ENTER, 'ut', RIGHT, ENTER, 'Reflect.defineProperty(globalThis, "util", utilDesc)', ENTER], - expected: [ + expected: common.hasIntl && common.hasCrypto ? [ prompt, ...'const utilDesc = ' + 'Reflect.getOwnPropertyDescriptor(globalThis, "util")', 'undefined\n', @@ -588,7 +588,7 @@ const tests = [ prompt, ...'Reflect.defineProperty(globalThis, "util", utilDesc)', 'true\n', prompt, - ], + ] : [], clean: false }, ];