(input, options = {})
| 1161 | })(); |
| 1162 | |
| 1163 | const withTimeout = async (input, options = {}) => { |
| 1164 | const controller = new AbortController(); |
| 1165 | const timer = setTimeout(() => controller.abort(), 4000); |
| 1166 | try { return await fetch(input, { ...options, signal: controller.signal }); } |
| 1167 | catch (error) { console.error('Capability test error', { input, options, error }); return null; } |
| 1168 | finally { clearTimeout(timer); } |
| 1169 | }; |
| 1170 | |
| 1171 | const testGet = async (mode) => { |
| 1172 | const urlToUse = usesJsonApi ? jsonGetUrl : wireGetUrl; |
no outgoing calls
no test coverage detected