function renderRouteWithStore(
  initialRoute = MainRoutes.Home,
  state = {},
  storage = initialStorage,
  auth = new TestOAuth2(),
  history = createInitialHistory(initialRoute)
) {
  localStorage.replaceWith(storage);

  const store = configureStore(state, history, auth);
  const flashMessagesController = FlashMessagesController.getInstance();

  const app = render(
    <App {...{ store, theme, history, auth, flashMessagesController }} />
  );

  return app;
}
/**
 * This function will render the whole app with a mocked store in the route
 * provided.
 * @param {String} initialRoute - The route to load.
 * @param {Object} state - The initial store state.
 * @param {Object} storage - The initial local storage state.
 * @param {IOAuth2Provider} auth Authentication provider.
 */
This function will render the whole app with a mocked store in the route
provided.
@param {String} initialRoute - The route to load.
@param {Object} state - The initial store state.
@param {Object} storage - The initial local storage state.
@param {IOAuth2Provider} auth Authentication provider.
This function will render the whole app with a mocked store in the route provided . @param { String } initialRoute - The route to load . @param { Object } state - The initial store state . @param { Object } storage - The initial local storage state . @param { IOAuth2Provider } auth Authentication provider .
function renderRouteWithStore(
  initialRoute = MainRoutes.Home,
  state = {},
  storage = initialStorage,
  auth = new TestOAuth2(),
  history = createInitialHistory(initialRoute)
) {
  localStorage.replaceWith(storage);
  const store = configureStore(state, history, auth);
  const flashMessagesController = FlashMessagesController.getInstance();
  const app = render(
    <App {...{ store, theme, history, auth, flashMessagesController }} />
  );
  return app;
}
function renderRouteWithStore ( initialRoute = MainRoutes . Home , state = { } , storage = initialStorage , auth = new TestOAuth2 ( ) , history = createInitialHistory ( initialRoute ) ) { localStorage . replaceWith ( storage ) ; const store = configureStore ( state , history , auth ) ; const flashMessagesController = FlashMessagesController . getInstance ( ) ; const app = render ( < App { ... { store , theme , history , auth , flashMessagesController } } / > ) ; return app ; }
This function will render the whole app with a mocked store in the route
 provided.
This function will render the whole app with a mocked store in the route provided .