mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
test: add test to ensure repl doesn't support --input-type
PR-URL: https://github.com/nodejs/node/pull/43507 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
This commit is contained in:
1 parent
b4b15b71d7
commit
0b4956079a
1 file changed
+10
@@ -0,0 +1,10 @@
|
||||
'use strict';
|
||||
|
||||
require('../common');
|
||||
|
||||
const assert = require('assert');
|
||||
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/);
|
||||
Reference in new issue
Block a user