INNER CODE UNIT · TypeScript

requireRoute

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

function requireRoute(
  context: ScenarioContext,
  method: string,
  path: string,
  occurrence = 0
): MockRouteLog {
  const route = context.routeLog.filter(
    item => item.method === method && item.path === path
  )[occurrence]
  assert.ok(route !== undefined, diagnostics(context))
  return route
}

function routeBody(
  context: ScenarioContext,
  method: string,
  path: string,
  occurrence = 0

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…