mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
test: fix test-cli-syntax assertions on windows
The test introduced in a5f91ab230
accidentally introduced failures on some windows builds. Update the
assertion that was causing the failures.
PR-URL: https://github.com/nodejs/node/pull/12212
Ref: https://github.com/nodejs/node/pull/11689
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
This commit is contained in:
1 file changed
+4
-3
@@ -124,9 +124,10 @@ syntaxArgs.forEach(function(args) {
|
||||
const args = [checkFlag, evalFlag, 'foo'];
|
||||
const c = spawnSync(node, args, {encoding: 'utf8'});
|
||||
|
||||
assert.strictEqual(
|
||||
c.stderr,
|
||||
`${node}: either --check or --eval can be used, not both\n`
|
||||
assert(
|
||||
c.stderr.startsWith(
|
||||
`${node}: either --check or --eval can be used, not both`
|
||||
)
|
||||
);
|
||||
|
||||
assert.strictEqual(c.status, 9, 'code === ' + c.status);
|
||||
|
||||
Reference in new issue
Block a user