PR-URL: https://github.com/nodejs/node/pull/52767 Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
11 lines
243 B
JavaScript
11 lines
243 B
JavaScript
const t = require('tap')
|
|
const tmock = require('../fixtures/tmock')
|
|
|
|
t.test('returns cli-entry function', async t => {
|
|
const cli = tmock(t, '{LIB}/cli.js', {
|
|
'{LIB}/cli/entry.js': () => 'ENTRY',
|
|
})
|
|
|
|
t.equal(cli(process), 'ENTRY')
|
|
})
|