module GdsApi::TestHelpers::Router

def stub_router_has_route(path, route, bearer_token = ENV["ROUTER_API_BEARER_TOKEN"])

def stub_router_has_route(path, route, bearer_token = ENV["ROUTER_API_BEARER_TOKEN"])
  stub_get_route(path, bearer_token).to_return(
    status: 200,
    body: route.to_json,
    headers: { "Content-Type" => "application/json" },
  )
end