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

16 lines
388 B
JavaScript
Raw Normal View History

2020-06-09 18:08:07 -07:00
import reducer from '../search';
import { Map as ImmutableMap } from 'immutable';
describe('search reducer', () => {
it('should return the initial state', () => {
expect(reducer(undefined, {})).toEqual(ImmutableMap({
value: '',
submitted: false,
submittedValue: '',
2020-06-09 18:08:07 -07:00
hidden: false,
results: ImmutableMap(),
filter: 'accounts',
2020-06-09 18:08:07 -07:00
}));
});
});