MCPcopy
hub / github.com/axios/axios / fireRequestCatch

Function fireRequestCatch

tests/browser/interceptors.browser.test.js:573–583  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

571
572 describe('and when the fulfillment interceptor throws', () => {
573 const fireRequestCatch = async () => {
574 const responsePromise = axios('/foo').catch(() => {});
575 const request = await waitForRequest();
576
577 request.respondWith({
578 status: 200,
579 responseText: 'OK',
580 });
581
582 await responsePromise;
583 };
584
585 it('then the following fulfillment interceptor is not called', async () => {
586 axios.interceptors.response.use(() => {

Callers 1

Calls 2

waitForRequestFunction · 0.70
respondWithMethod · 0.45

Tested by

no test coverage detected