2020-06-09 18:08:07 -07:00
|
|
|
import { Map as ImmutableMap, Set as ImmutableSet } from 'immutable';
|
2022-01-10 14:25:06 -08:00
|
|
|
|
2022-01-10 14:01:24 -08:00
|
|
|
import reducer from '../reports';
|
2020-06-09 18:08:07 -07:00
|
|
|
|
|
|
|
describe('reports reducer', () => {
|
|
|
|
it('should return the initial state', () => {
|
|
|
|
expect(reducer(undefined, {})).toEqual(ImmutableMap({
|
|
|
|
new: ImmutableMap({
|
|
|
|
isSubmitting: false,
|
|
|
|
account_id: null,
|
|
|
|
status_ids: ImmutableSet(),
|
|
|
|
comment: '',
|
|
|
|
forward: false,
|
|
|
|
block: false,
|
|
|
|
}),
|
|
|
|
}));
|
|
|
|
});
|
|
|
|
});
|