Files
Kmake/deps/npm/test/bin/npm-cli.js
2026-05-26 23:36:42 -07:00

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()
},
})
})