MCPcopy Index your code
hub / github.com/nodejs/node / rejectDiff

Function rejectDiff

deps/npm/test/lib/commands/diff.js:144–147  ·  view source on GitHub ↗
(t, msg, opts)

Source from the content-addressed store, hash-verified

142}
143
144const rejectDiff = async (t, msg, opts) => {
145 const { npm } = await mockDiff(t, opts)
146 await t.rejects(npm.exec('diff', []), msg)
147}
148
149t.test('no args', async t => {
150 t.test('in a project dir', async t => {

Callers 1

diff.jsFile · 0.85

Calls 2

mockDiffFunction · 0.85
execMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…