reducer-utils.spec.ts 330 Bytes
Newer Older
Matt Teeter's avatar
Matt Teeter committed
1 2 3 4 5 6 7 8 9 10 11
import { createReducer } from '..';

describe('reducer utils', () => {
  describe('createReducer', () => {
    it('should create reducer correctly', () => {
      const result = createReducer({}, {});
      expect(result instanceof Function).toBe(true);
      expect(result({ s: 's' }, {})).toEqual({ s: 's' });
    });
  });
});