kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
12 wiersze
334 B
TypeScript
12 wiersze
334 B
TypeScript
|
import { Record as ImmutableRecord } from 'immutable';
|
||
|
|
||
|
import reducer from '.';
|
||
|
|
||
|
describe('root reducer', () => {
|
||
|
it('should return the initial state', () => {
|
||
|
const result = reducer(undefined, {} as any);
|
||
|
expect(ImmutableRecord.isRecord(result)).toBe(true);
|
||
|
expect(result.instance.version).toEqual('0.0.0');
|
||
|
});
|
||
|
});
|