Esempio n. 1
0
 it('should add shows on GET_SHOWS', () => {
   expect(reducer(undefined, {
     type: GET_SHOWS,
     payload: {
       headers: new Headers({ 'total-count': 1 }),
       data: [{ item: 'an item' }],
     },
   })).toEqual({ totalCount: 1, items: [{ item: 'an item' }] });
 });
Esempio n. 2
0
 it('should return the initial state', () => {
   expect(reducer(undefined, {})).toEqual({ totalCount: 0, items: [] });
 });