(error, route = "")
| 1737 | } |
| 1738 | |
| 1739 | function isUnknownApiRoute(error, route = "") { |
| 1740 | return Number(error?.status) === 404 |
| 1741 | && String(error?.message || "").includes("Unknown API route") |
| 1742 | && (!route || String(error?.path || "").includes(route)); |
| 1743 | } |
| 1744 | |
| 1745 | async function demoApi(path, options = {}) { |
| 1746 | await new Promise((resolve) => window.setTimeout(resolve, 90)); |
no outgoing calls
no test coverage detected