Skip to content

Commit 9348f31

Browse files
test: fix test-cli-syntax assertions on windows
The test introduced in a5f91ab accidentally introduced failures on some windows builds. Update the assertion that was causing the failures. PR-URL: #12212 Ref: #11689 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Rich Trott <[email protected]>
1 parent c79b081 commit 9348f31

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/parallel/test-cli-syntax.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,10 @@ syntaxArgs.forEach(function(args) {
124124
const args = [checkFlag, evalFlag, 'foo'];
125125
const c = spawnSync(node, args, {encoding: 'utf8'});
126126

127-
assert.strictEqual(
128-
c.stderr,
129-
`${node}: either --check or --eval can be used, not both\n`
127+
assert(
128+
c.stderr.startsWith(
129+
`${node}: either --check or --eval can be used, not both`
130+
)
130131
);
131132

132133
assert.strictEqual(c.status, 9, 'code === ' + c.status);

0 commit comments

Comments
 (0)