summaryrefslogtreecommitdiff
path: root/deps/npm/lib/test.js
blob: 9a9c6425247e5aa64fd02d33cec244964a5c06dc (plain)
1
2
3
4
5
6
7
8
9
10
11
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()
    return cb("Test failed.  See above for more details.")
  })
}