2020-08-24 15:18:53 -07:00
|
|
|
import reducer from '../admin';
|
2020-12-29 16:59:31 -08:00
|
|
|
import { Map as ImmutableMap, OrderedSet as ImmutableOrderedSet, fromJS } from 'immutable';
|
2020-08-24 15:18:53 -07:00
|
|
|
|
|
|
|
describe('admin reducer', () => {
|
|
|
|
it('should return the initial state', () => {
|
|
|
|
expect(reducer(undefined, {})).toEqual(fromJS({
|
|
|
|
reports: [],
|
2020-08-24 16:00:09 -07:00
|
|
|
open_report_count: 0,
|
2020-12-29 16:59:31 -08:00
|
|
|
users: ImmutableMap(),
|
|
|
|
awaitingApproval: ImmutableOrderedSet(),
|
2020-08-24 15:18:53 -07:00
|
|
|
}));
|
|
|
|
});
|
|
|
|
});
|