We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fd160c commit cda26a3Copy full SHA for cda26a3
test/requests.js
@@ -8,7 +8,7 @@ const targets = require('../src/targets')
8
const shell = require('child_process')
9
const util = require('util')
10
11
-require('should')
+const should = require('should')
12
13
const base = './test/fixtures/output/'
14
const requests = [
@@ -40,6 +40,11 @@ fixtures.cli.forEach(function (cli) {
40
})
41
42
ls.on('exit', function (code) {
43
+ if (code !== 0) {
44
+ console.error(stdout)
45
+ should.fail(0, code, `Process '${cli.run.split(' ')[0]}' exited unexpectedly with code ${code}`)
46
+ }
47
+
48
let har
49
try {
50
har = JSON.parse(stdout)
0 commit comments