PR-URL: https://github.com/nodejs/node/pull/46193 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
11 lines
293 B
JavaScript
11 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()
|
|
},
|
|
})
|
|
})
|