2022-06-21 15:29:17 -07:00
|
|
|
import { OrderedSet as ImmutableOrderedSet } from 'immutable';
|
2020-06-09 18:08:07 -07:00
|
|
|
|
2022-11-15 12:39:43 -08:00
|
|
|
import reducer from '../user-lists';
|
2020-06-09 18:08:07 -07:00
|
|
|
|
|
|
|
describe('user_lists reducer', () => {
|
|
|
|
it('should return the initial state', () => {
|
2022-06-21 15:29:17 -07:00
|
|
|
expect(reducer(undefined, {} as any)).toMatchObject({
|
|
|
|
followers: {},
|
|
|
|
following: {},
|
|
|
|
reblogged_by: {},
|
|
|
|
favourited_by: {},
|
|
|
|
reactions: {},
|
|
|
|
follow_requests: { next: null, items: ImmutableOrderedSet(), isLoading: false },
|
|
|
|
blocks: { next: null, items: ImmutableOrderedSet(), isLoading: false },
|
|
|
|
mutes: { next: null, items: ImmutableOrderedSet(), isLoading: false },
|
|
|
|
directory: { next: null, items: ImmutableOrderedSet(), isLoading: true },
|
|
|
|
pinned: {},
|
|
|
|
birthday_reminders: {},
|
|
|
|
familiar_followers: {},
|
|
|
|
});
|
2020-06-09 18:08:07 -07:00
|
|
|
});
|
|
|
|
});
|