"Fossies" - the Fresh Open Source Software Archive

Member "Atom/resources/app/apm/node_modules/npm/lib/test.js" (8 Mar 2017, 294 Bytes) of archive /windows/misc/atom-windows.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Javascript source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 module.exports = test
    2 
    3 var testCmd = require('./utils/lifecycle.js').cmd('test')
    4 
    5 function test (args, cb) {
    6   testCmd(args, function (er) {
    7     if (!er) return cb()
    8     if (er.code === 'ELIFECYCLE') {
    9       return cb('Test failed.  See above for more details.')
   10     }
   11     return cb(er)
   12   })
   13 }