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

Function fn

deps/npm/test/lib/utils/auth.js:30–35  ·  view source on GitHub ↗
({ otp })

Source from the content-addressed store, hash-verified

28
29t.test('returns function results on otp success', async (t) => {
30 const fn = ({ otp }) => {
31 if (otp) {
32 return 'success'
33 }
34 throw Object.assign(new Error('nope'), { code: 'EOTP' })
35 }
36
37 const result = await setupOtplease(t, {
38 globals: {

Callers 2

read-user-info.jsFile · 0.70
otpleaseFunction · 0.50

Calls 1

assignMethod · 0.80

Tested by

no test coverage detected