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

stop.js « lib « test « npm « deps - github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 92ca84bd8741ab4154d8317176c86d18ea8ca868 (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 Stop = require('../../lib/stop.js')
const stop = new Stop(npm)
stop.exec(['foo'], () => {
  t.match(runArgs, ['stop', 'foo'])
  t.end()
})