expectRouteExists function

void expectRouteExists(
  1. String route
)

Assert that a route exists in the router.

Implementation

void expectRouteExists(String route) {
  expect(
    Nylo.containsRoute(route),
    isTrue,
    reason: 'Expected route "$route" to exist',
  );
}