Files
JiboSDK/node_modules/npm/lib/test.js

14 lines
294 B
JavaScript
Raw Normal View History

2026-03-22 03:21:45 +02:00
module.exports = test
var testCmd = require("./utils/lifecycle.js").cmd("test")
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)
})
}