20 lines
555 B
JavaScript
20 lines
555 B
JavaScript
import reducer from '../admin';
|
|
import {
|
|
Map as ImmutableMap,
|
|
List as ImmutableList,
|
|
OrderedSet as ImmutableOrderedSet,
|
|
} from 'immutable';
|
|
|
|
describe('admin reducer', () => {
|
|
it('should return the initial state', () => {
|
|
expect(reducer(undefined, {})).toEqual(ImmutableMap({
|
|
reports: ImmutableMap(),
|
|
openReports: ImmutableOrderedSet(),
|
|
users: ImmutableMap(),
|
|
latestUsers: ImmutableOrderedSet(),
|
|
awaitingApproval: ImmutableOrderedSet(),
|
|
configs: ImmutableList(),
|
|
needsReboot: false,
|
|
}));
|
|
});
|
|
});
|