From d935ecc015570812e27b6aa2932195d0df5f5697 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jos=C3=A9=20Arboleda?= Date: Mon, 10 Oct 2022 14:30:12 -0500 Subject: [PATCH] test: improve assertions in `test-repl-unsupported-option.js` --- 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);