pleroma/app/soapbox/reducers/__tests__/index.test.ts
2023-07-20 15:03:23 -05:00

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