(endpointUrl: string)
| 7 | export const FACADE_PATH = '/api/cli/v1'; |
| 8 | |
| 9 | export function facadeBaseUrl(endpointUrl: string): string { |
| 10 | const trimmed = endpointUrl.endsWith('/') ? endpointUrl.slice(0, -1) : endpointUrl; |
| 11 | if (trimmed.endsWith(FACADE_PATH)) return trimmed; |
| 12 | return `${trimmed}${FACADE_PATH}`; |
| 13 | } |
| 14 | |
| 15 | /** |
| 16 | * Resolve the Portal dashboard deep-link for a test, given the API endpoint URL |
no outgoing calls
no test coverage detected