pleroma/app/soapbox/reducers/__tests__/admin-test.js
2020-12-29 18:59:31 -06:00

13 lines
401 B
JavaScript

import reducer from '../admin';
import { Map as ImmutableMap, OrderedSet as ImmutableOrderedSet, fromJS } from 'immutable';
describe('admin reducer', () => {
it('should return the initial state', () => {
expect(reducer(undefined, {})).toEqual(fromJS({
reports: [],
open_report_count: 0,
users: ImmutableMap(),
awaitingApproval: ImmutableOrderedSet(),
}));
});
});