diff --git a/test/parallel/test-repl-history-navigation.js b/test/parallel/test-repl-history-navigation.js index 64236ec734923d..4df120d7cb9eae 100644 --- a/test/parallel/test-repl-history-navigation.js +++ b/test/parallel/test-repl-history-navigation.js @@ -585,7 +585,7 @@ const tests = [ prompt, ...'const util = {}', 'undefined\n', prompt, ...'ut', ...(prev ? [' // il', '\n// {}', - 'il', '\n// {}'] : [' // il', 'il']), + 'il', '\n// {}'] : ['il']), '{}\n', prompt, ], @@ -605,7 +605,7 @@ const tests = [ 'undefined\n', prompt, ...'globalThis.util = {}', '{}\n', - prompt, ...'ut', ' // il', 'il', + prompt, ...'ut', ...(prev ? [' // il', 'il' ] : ['il']), '{}\n', prompt, ...'Reflect.defineProperty(globalThis, "util", utilDesc)', 'true\n',