test: adding history regression test case
Recently added mulitline caused a issue in history navigation ref: https://github.com/nodejs/node/issues/24385
Fundamentally, we don't had a test case for navigation till now, the one I see here: https://github.com/nodejs/node/blob/master/test/parallel/test-repl-persistent-history.js#L97, just tests one level navigation.
cc @nodejs/repl @BridgeAR
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines