bigbuffet-rw/app/soapbox/reducers/__tests__/search-test.js
marcin mikołajczak d36ec10c6a Auto select search tab that has results
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2021-08-07 20:57:22 +02:00

15 lines
388 B
JavaScript

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: '',
hidden: false,
results: ImmutableMap(),
filter: 'accounts',
}));
});
});