Skip to content

Commit

Permalink
test: improve assertions in test-repl-unsupported-option.js
Browse files Browse the repository at this point in the history
PR-URL: #44953
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
Reviewed-By: Kohei Ueno <kohei.ueno119@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
juanarbol authored and RafaelGSS committed Nov 10, 2022
1 parent 3bfba6d commit 71b8d50
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/parallel/test-repl-unsupported-option.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ const { spawnSync } = require('child_process');

const result = spawnSync(process.execPath, ['-i', '--input-type=module']);

assert.match(result.stderr.toString(), /Cannot specify --input-type for REPL/);
assert.strictEqual(result.stderr.toString(), 'Cannot specify --input-type for REPL\n');
assert.notStrictEqual(result.exitCode, 0);

0 comments on commit 71b8d50

Please sign in to comment.