expectNotRoute function

void expectNotRoute(
  1. String route
)

Assert that the current route is not the specified route.

Implementation

void expectNotRoute(String route) {
  final currentRoute = Nylo.getCurrentRouteName();
  expect(
    currentRoute,
    isNot(route),
    reason: 'Expected route to not be "$route"',
  );
}