INNER CODE UNIT · TypeScript

apiPath

github/branch-deploy · tools/acceptance/index.ts:116

function apiPath(path: string): string {
  return `/repos/${ACCEPTANCE_REPOSITORY.owner}/${ACCEPTANCE_REPOSITORY.repo}${path}`
}

function restoreEnvironment(name: string, value: string | undefined): void {
  if (value === undefined) {
    delete process.env[name]
  } else {
    process.env[name] = value
  }
}

function routeLogForDiagnostics(routeLog: readonly MockRouteLog[]): unknown {
  return routeLog.map(route => ({
    accept: route.accept,
    apiVersion: route.apiVersion,
    authorizationPresent: route.authorizationPresent,
    method: route.method,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…