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

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