MCPcopy
hub / github.com/axios/axios / test

Function test

lib/adapters/fetch.js:51–57  ·  view source on GitHub ↗
(fn, ...args)

Source from the content-addressed store, hash-verified

49};
50
51const test = (fn, ...args) => {
52 try {
53 return !!fn(...args);
54 } catch (e) {
55 return false;
56 }
57};
58
59const maybeWithAuthCredentials = (url) => {
60 const protocolIndex = url.indexOf('://');

Callers 12

factoryFunction · 0.85
kindOfTest.test.jsFile · 0.85
http.smoke.test.tsFile · 0.85

Calls 1

fnFunction · 0.85

Tested by

no test coverage detected