mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-12-30 18:59:10 +00:00
17 lines
374 B
JavaScript
17 lines
374 B
JavaScript
|
/* 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)
|
||
|
})
|
||
|
}
|