2020-06-09 18:08:07 -07:00
|
|
|
import reducer from '../height_cache';
|
|
|
|
import { Map as ImmutableMap } from 'immutable';
|
2020-07-07 17:38:16 -07:00
|
|
|
import { HEIGHT_CACHE_CLEAR } from '../height_cache';
|
2020-06-09 18:08:07 -07:00
|
|
|
|
|
|
|
describe('height_cache reducer', () => {
|
|
|
|
it('should return the initial state', () => {
|
|
|
|
expect(reducer(undefined, {})).toEqual(ImmutableMap());
|
|
|
|
});
|
2020-07-07 17:38:16 -07:00
|
|
|
|
|
|
|
it('should handle HEIGHT_CACHE_CLEAR', () => {
|
2020-07-07 20:27:41 -07:00
|
|
|
expect(reducer(undefined, { type: HEIGHT_CACHE_CLEAR })).toEqual(ImmutableMap());
|
2020-07-07 19:52:56 -07:00
|
|
|
});
|
2020-06-09 18:08:07 -07:00
|
|
|
});
|