blob: 05bffed86d59c1840368c950a9c563c2cc3974a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/* eslint-disable standard/no-callback-literal */
module.exports = test
const testCmd = require('./utils/lifecycle-cmd.js')('test')
test.usage = testCmd.usage
function test (args, cb) {
testCmd(args, function (er) {
if (!er) return cb()
if (er.code === 'ELIFECYCLE') {
return cb('Test failed. See above for more details.')
}
return cb(er)
})
}
|