You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
527 B
14 lines
527 B
import {WEATHER_DATA} from '../data/stub';
|
|
import appReducer from "../redux/reducers/appReducer";
|
|
|
|
// Mock values used in tests
|
|
const initialState = {
|
|
weatherList: WEATHER_DATA, //Here you defined a static list loaded in the initial state. In your real store, this list is usually empty.
|
|
favoriteCity: [],
|
|
}
|
|
|
|
// Reducer for tests => Just call the "true" reducer with our mocked data as initial state
|
|
// @ts-ignore
|
|
export default testReducer = (state = initialState, action) => {
|
|
return appReducer(initialState, action);
|
|
} |