mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
15 lines
322 B
JavaScript
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)
|
|
})
|
|
}
|