18 lines
460 B
JavaScript
18 lines
460 B
JavaScript
|
import reducer from '../reports';
|
||
|
import { Map as ImmutableMap, Set as ImmutableSet } from 'immutable';
|
||
|
|
||
|
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,
|
||
|
}),
|
||
|
}));
|
||
|
});
|
||
|
});
|