mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
PR-URL: https://github.com/nodejs/node/pull/48378 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Luke Karrys <luke@lukekarrys.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.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')
|
|
})
|