node/deps/npm/test/bin/npm-cli.js

12 lines
293 B
JavaScript

const t = require('tap')
const tmock = require('../fixtures/tmock')
t.test('loading the bin calls the implementation', t => {
tmock(t, '{BIN}/npm-cli.js', {
'{LIB}/cli.js': proc => {
t.equal(proc, process, 'called implementation with process object')
t.end()
},
})
})