bigbuffet-rw/app/soapbox/reducers/__tests__/admin-test.js

21 lines
555 B
JavaScript
Raw Normal View History

import {
Map as ImmutableMap,
List as ImmutableList,
OrderedSet as ImmutableOrderedSet,
} from 'immutable';
2022-01-10 14:01:24 -08:00
import reducer from '../admin';
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(),
latestUsers: ImmutableOrderedSet(),
2020-12-29 16:59:31 -08:00
awaitingApproval: ImmutableOrderedSet(),
configs: ImmutableList(),
needsReboot: false,
2020-12-31 16:33:45 -08:00
}));
});
});