From 71b8d506ed6e33771c424f8ce3cba09081bfeb63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jos=C3=A9?= Date: Tue, 18 Oct 2022 07:14:02 -0500 Subject: [PATCH] test: improve assertions in `test-repl-unsupported-option.js` PR-URL: https://github.com/nodejs/node/pull/44953 Reviewed-By: Luigi Pinca Reviewed-By: Minwoo Jung Reviewed-By: Kohei Ueno Reviewed-By: Ruben Bridgewater Reviewed-By: Colin Ihrig Reviewed-By: Yagiz Nizipli Reviewed-By: James M Snell --- test/parallel/test-repl-unsupported-option.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/parallel/test-repl-unsupported-option.js b/test/parallel/test-repl-unsupported-option.js index c5b234614983f6..210e056b3ab0ae 100644 --- a/test/parallel/test-repl-unsupported-option.js +++ b/test/parallel/test-repl-unsupported-option.js @@ -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);