Guest User

Untitled

a guest
Jun 19th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. import reducer, { initialState } from './reducer'
  2. import * as t from './actionTypes'
  3.  
  4. describe('news reducer', () => { // describe - группировка для наших тестов новостного редьюсера
  5.  
  6. it('NEWS_GET_REQUEST', () => { // it - блок, конкретного unit-теста
  7. const action = {
  8. type: t.NEWS_GET_REQUEST,
  9. }
  10.  
  11. expect(reducer(initialState, action)).toEqual({
  12. ...initialState,
  13. isLoading: true,
  14. })
  15. })
  16.  
  17. })
Add Comment
Please, Sign In to add comment