• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/* eslint-disable standard/no-callback-literal */
2module.exports = test
3
4const testCmd = require('./utils/lifecycle-cmd.js')('test')
5
6test.usage = testCmd.usage
7
8function 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}
17