bigbuffet-rw/app/soapbox/reducers/__tests__/index-test.js
2022-03-09 15:24:42 -06:00

12 lines
388 B
JavaScript

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');
});
});