2020-12-29 20:17:03 -08:00
|
|
|
import {
|
|
|
|
Map as ImmutableMap,
|
|
|
|
List as ImmutableList,
|
|
|
|
OrderedSet as ImmutableOrderedSet,
|
|
|
|
} from 'immutable';
|
2022-01-10 14:25:06 -08:00
|
|
|
|
2022-01-10 14:01:24 -08:00
|
|
|
import reducer from '../admin';
|
2020-08-24 15:18:53 -07:00
|
|
|
|
|
|
|
describe('admin reducer', () => {
|
|
|
|
it('should return the initial state', () => {
|
2020-12-31 16:33:45 -08:00
|
|
|
expect(reducer(undefined, {})).toEqual(ImmutableMap({
|
2020-12-31 12:29:31 -08:00
|
|
|
reports: ImmutableMap(),
|
|
|
|
openReports: ImmutableOrderedSet(),
|
2020-12-29 16:59:31 -08:00
|
|
|
users: ImmutableMap(),
|
2021-07-14 10:27:51 -07:00
|
|
|
latestUsers: ImmutableOrderedSet(),
|
2020-12-29 16:59:31 -08:00
|
|
|
awaitingApproval: ImmutableOrderedSet(),
|
2020-12-29 20:17:03 -08:00
|
|
|
configs: ImmutableList(),
|
|
|
|
needsReboot: false,
|
2020-12-31 16:33:45 -08:00
|
|
|
}));
|
2020-08-24 15:18:53 -07:00
|
|
|
});
|
|
|
|
});
|