MCPcopy
hub / github.com/axios/axios / flushSuccess

Function flushSuccess

tests/browser/instance.browser.test.js:71–74  ·  view source on GitHub ↗
(request, promise)

Source from the content-addressed store, hash-verified

69};
70
71const flushSuccess = async (request, promise) => {
72 request.respondWith({ status: 200 });
73 await promise;
74};
75
76const waitForRequest = async (timeoutMs = 1000) => {
77 const start = Date.now();

Callers 1

Calls 1

respondWithMethod · 0.45

Tested by

no test coverage detected