e2e test passing

This commit is contained in:
2024-04-24 16:05:19 -04:00
parent 5db0d0afc1
commit e390640938
7 changed files with 95 additions and 4 deletions

View File

@ -1 +1,11 @@
export const loadRestaurants = () => () => {};
export const STORE_RESTAURANTS = 'STORE_RESTAURANTS';
export const loadRestaurants = () => async (dispatch, getState, api) => {
const records = await api.loadRestaurants();
dispatch(storeRestaurants(records));
};
const storeRestaurants = records => ({
type: STORE_RESTAURANTS,
records
});