Parse the Redux state as an Immutable.Record See merge request soapbox-pub/soapbox-fe!1085merge-requests/1084/merge
commit
a63aa16472
@ -0,0 +1,12 @@
|
||||
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);
|
||||
expect(result.instance.get('version')).toEqual('0.0.0');
|
||||
});
|
||||
});
|
Loading…
Reference in new issue