UNPKG

322 BJavaScriptView Raw
1module.exports = test
2
3var testCmd = require("./utils/lifecycle.js").cmd("test")
4 , log = require("npmlog")
5
6function test (args, cb) {
7 testCmd(args, function (er) {
8 if (!er) return cb()
9 if (er.code === "ELIFECYCLE") {
10 return cb("Test failed. See above for more details.")
11 }
12 return cb(er)
13 })
14}