1 | module.exports = test
|
2 |
|
3 | var testCmd = require("./utils/lifecycle.js").cmd("test")
|
4 | , log = require("npmlog")
|
5 |
|
6 | function 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 | }
|