Home
last modified time | relevance | path

Searched refs:replyWithError (Results 1 – 4 of 4) sorted by relevance

/third_party/node/deps/undici/src/types/
Dmock-interceptor.d.ts33 replyWithError<TError extends Error = Error>(error: TError): MockScope;
/third_party/node/deps/undici/src/lib/mock/
Dmock-interceptor.js163 replyWithError (error) { method in MockInterceptor
/third_party/node/deps/undici/src/docs/api/
DMockPool.md68 * **replyWithError** `(error: Error) => MockScope` - define an error for a matching request to thro…
75 By default, `reply` and `replyWithError` define the behaviour for the first matching request only. …
318 }).replyWithError(new Error('kaboom'))
/third_party/node/deps/npm/test/lib/commands/
Ddoctor.js200 .get('/-/ping?write=true').replyWithError({ message: 'Test Error', code: 'TEST' })
216 .get('/-/ping?write=true').replyWithError({ message: 'Test Error', code: false })