Unverified Commit e322f74c authored by Ruben Bridgewater's avatar Ruben Bridgewater Committed by Anna Henningsen
Browse files

test: refactor and simplify test-repl-preview

Use an object to indicate which part belongs to the input and which
to the output.
On top of that this also simplifies the expected output by
automatically inserting the default repl line for previews and by
automatically checking for the correct output line length.

PR-URL: https://github.com/nodejs/node/pull/32154


Reviewed-By: default avatarShelley Vohr <codebytere@gmail.com>
Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
parent 9c18ff64
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment