Admin: fix reducer tests
This commit is contained in:
parent
23a4a605a1
commit
19e1e15263
1 changed files with 3 additions and 1 deletions
|
@ -1,11 +1,13 @@
|
|||
import reducer from '../admin';
|
||||
import { fromJS } from 'immutable';
|
||||
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(),
|
||||
}));
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue