Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import reducer, { initialState } from './reducer'
- import * as t from './actionTypes'
- describe('news reducer', () => { // describe - группировка для наших тестов новостного редьюсера
- it('NEWS_GET_REQUEST', () => { // it - блок, конкретного unit-теста
- const action = {
- type: t.NEWS_GET_REQUEST,
- }
- expect(reducer(initialState, action)).toEqual({
- ...initialState,
- isLoading: true,
- })
- })
- })
Add Comment
Please, Sign In to add comment