Skip to content

Commit

Permalink
repl: fix test fail without ssl or intl
Browse files Browse the repository at this point in the history
  • Loading branch information
eladkishon committed Apr 17, 2021
1 parent 2b5e203 commit 770a015
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/parallel/test-repl-history-navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
{
Expand All @@ -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',
Expand All @@ -588,7 +588,7 @@ const tests = [
prompt, ...'Reflect.defineProperty(globalThis, "util", utilDesc)',
'true\n',
prompt,
],
] : [],
clean: false
},
];
Expand Down

0 comments on commit 770a015

Please sign in to comment.