bigbuffet-rw/app/soapbox/reducers/__tests__/instance-test.js

19 lines
489 B
JavaScript
Raw Normal View History

2020-06-09 18:08:07 -07:00
import reducer from '../instance';
import { Map as ImmutableMap } from 'immutable';
describe('instance reducer', () => {
it('should return the initial state', () => {
expect(reducer(undefined, {})).toEqual(ImmutableMap({
max_toot_chars: 500,
description_limit: 1500,
2020-06-09 18:08:07 -07:00
poll_limits: ImmutableMap({
max_expiration: 2629746,
max_option_chars: 25,
max_options: 4,
min_expiration: 300,
}),
2021-01-18 12:14:08 -08:00
version: '0.0.0',
2020-06-09 18:08:07 -07:00
}));
});
});