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

start.js « lib « test « npm « deps - github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4e77f9691b815be629eb7398a4101e61b65cdbb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
const t = require('tap')
let runArgs
const npm = {
  commands: {
    'run-script': (args, cb) => {
      runArgs = args
      cb()
    },
  },
}
const Start = require('../../lib/start.js')
const start = new Start(npm)
start.exec(['foo'], () => {
  t.match(runArgs, ['start', 'foo'])
  t.end()
})