2022-03-09 13:24:42 -08:00
|
|
|
import { Record as ImmutableRecord } from 'immutable';
|
|
|
|
|
|
|
|
import reducer from '..';
|
|
|
|
|
|
|
|
describe('root reducer', () => {
|
|
|
|
it('should return the initial state', () => {
|
|
|
|
const result = reducer(undefined, {});
|
|
|
|
expect(ImmutableRecord.isRecord(result)).toBe(true);
|
|
|
|
expect(result.accounts.get('')).toBe(undefined);
|
2022-03-09 14:07:24 -08:00
|
|
|
expect(result.instance.version).toEqual('0.0.0');
|
2022-03-09 13:24:42 -08:00
|
|
|
});
|
|
|
|
});
|