14 lines
336 B
JavaScript
14 lines
336 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,
|
||
|
hidden: false,
|
||
|
results: ImmutableMap(),
|
||
|
}));
|
||
|
});
|
||
|
});
|