"Fossies" - the Fresh Open Source Software Archive

Member "Atom/resources/app/apm/node_modules/npm/lib/install-test.js" (8 Mar 2017, 507 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 'use strict'
    2 
    3 // npm install-test
    4 // Runs `npm install` and then runs `npm test`
    5 
    6 module.exports = installTest
    7 var install = require('./install.js')
    8 var test = require('./test.js')
    9 var usage = require('./utils/usage')
   10 
   11 installTest.usage = usage(
   12   'install-test',
   13   '\nnpm install-test [args]' +
   14   '\nSame args as `npm install`'
   15 )
   16 
   17 installTest.completion = install.completion
   18 
   19 function installTest (args, cb) {
   20   install(args, function (er) {
   21     if (er) {
   22       return cb(er)
   23     }
   24     test([], cb)
   25   })
   26 }