UNPKG

npm

Version:

A package manager for node

15 lines (12 loc) 322 B
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) }) }