bigbuffet-rw/app/soapbox/reducers/__tests__/index.test.ts

13 lines
388 B
TypeScript
Raw Normal View History

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