0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/deps/npm/lib/test.js
2012-07-13 12:08:17 -07:00

15 lines
322 B
JavaScript

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