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