Skip to content

Commit

Permalink
test,repl: fix tests when inspector is disabled
Browse files Browse the repository at this point in the history
Fixes: #38558

PR-URL: #38564
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
  • Loading branch information
aduh95 committed May 9, 2021
1 parent 1b11398 commit 7c8a608
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 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: common.hasIntl && common.hasCrypto ? [
expected: [
prompt, ...'const util = {}',
'undefined\n',
prompt, ...'ut', ' // il', '\n// {}',
'il', '\n// {}',
prompt, ...'ut', ...(prev ? [' // il', '\n// {}',
'il', '\n// {}'] : [' // il', 'il']),
'{}\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: common.hasIntl && common.hasCrypto ? [
expected: [
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 7c8a608

Please sign in to comment.