Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- it('NEWS_GET_SUCCESS', () => {
- const action = {
- type: t.NEWS_GET_SUCCESS,
- payload: [1, 2, 3], // тот самый action.payload
- }
- expect(reducer(initialState, action)).toEqual({
- ...initialState,
- isLoading: false,
- data: action.payload, // который мы кладем в data
- })
- })
Add Comment
Please, Sign In to add comment