bigbuffet-rw/app/soapbox/reducers/__tests__/user-lists.test.ts

23 lines
777 B
TypeScript
Raw Normal View History

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', () => {
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
});
});