2022-05-14 12:13:58 -07:00
|
|
|
import { Record as ImmutableRecord } from 'immutable';
|
2022-01-10 14:25:06 -08:00
|
|
|
|
2022-01-10 14:01:24 -08:00
|
|
|
import reducer from '../trends';
|
2020-06-09 18:08:07 -07:00
|
|
|
|
|
|
|
describe('trends reducer', () => {
|
|
|
|
it('should return the initial state', () => {
|
2022-05-14 12:13:58 -07:00
|
|
|
const result = reducer(undefined, {});
|
|
|
|
expect(ImmutableRecord.isRecord(result)).toBe(true);
|
|
|
|
expect(result.items.isEmpty()).toBe(true);
|
|
|
|
expect(result.isLoading).toBe(false);
|
2020-06-09 18:08:07 -07:00
|
|
|
});
|
|
|
|
});
|