Skip to content

Commit 050de9a

Browse files
committed
tests: do not ignore a zero exitCode when checking validation results
1 parent 7788986 commit 050de9a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/cli/util.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@ const cliTest = (title, args, testPath, options) => {
1616
let [exitCode, stdout, stderr] = await runCli(args, cwd)
1717

1818
let expectedExitCode = undefined
19-
if (options !== undefined && options.exitCode) {
19+
if (options !== undefined && options.exitCode !== undefined) {
2020
expectedExitCode = options.exitCode
2121
}
22-
2322
let expectedStdout = undefined
2423
try {
2524
expectedStdout = fs.readFileSync(resolvePath(`./${testPath}.stdout`), 'utf-8')

0 commit comments

Comments
 (0)