(nextPageUrl: string)
| 19 | } |
| 20 | |
| 21 | export function assertGraphNextPageUrl(nextPageUrl: string): string { |
| 22 | const trimmed = nextPageUrl.trim() |
| 23 | const url = new URL(trimmed) |
| 24 | if (url.origin !== 'https://graph.microsoft.com') { |
| 25 | throw new Error('nextPageUrl must be a Microsoft Graph @odata.nextLink URL') |
| 26 | } |
| 27 | return url.toString() |
| 28 | } |
| 29 | |
| 30 | function stripHtmlTags(html: string): string { |
| 31 | let text = html |
no test coverage detected