bigbuffet-rw/app/soapbox/reducers/__tests__/user-lists.test.ts
2022-11-16 08:34:50 -05:00

22 lines
777 B
TypeScript

import { OrderedSet as ImmutableOrderedSet } from 'immutable';
import reducer from '../user-lists';
describe('user_lists reducer', () => {
it('should return the initial state', () => {
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: {},
});
});
});