Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test.js « lib - github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: cbc75821708b1211c329ebf0b83f42c99952bf27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)
  })
}