(fetchImpl)
| 42 | const OUTLOOK_API_BASE = 'https://outlook.office.com/api/v2.0/me/mailfolders'; |
| 43 | |
| 44 | function getFetchImpl(fetchImpl) { |
| 45 | const resolved = fetchImpl || globalScope.fetch; |
| 46 | if (typeof resolved !== 'function') { |
| 47 | throw new Error('Microsoft email helper requires a fetch implementation.'); |
| 48 | } |
| 49 | return resolved; |
| 50 | } |
| 51 | |
| 52 | function resolveTokenStrategy(name) { |
| 53 | return TOKEN_STRATEGIES.find((item) => item.name === name) || TOKEN_STRATEGIES[0]; |
no outgoing calls
no test coverage detected