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,
|
2021-08-07 11:42:39 -07:00
|
|
|
submittedValue: '',
|
2020-06-09 18:08:07 -07:00
|
|
|
hidden: false,
|
|
|
|
results: ImmutableMap(),
|
2021-08-02 12:10:41 -07:00
|
|
|
filter: 'accounts',
|
2020-06-09 18:08:07 -07:00
|
|
|
}));
|
|
|
|
});
|
|
|
|
});
|