2022-11-15 12:39:43 -08:00
|
|
|
import reducer from '../status-lists';
|
2022-06-05 07:17:26 -07:00
|
|
|
|
|
|
|
describe('status_lists reducer', () => {
|
|
|
|
it('should return the initial state', () => {
|
|
|
|
expect(reducer(undefined, {} as any).toJS()).toEqual({
|
|
|
|
favourites: {
|
|
|
|
next: null,
|
|
|
|
loaded: false,
|
|
|
|
isLoading: null,
|
|
|
|
items: [],
|
|
|
|
},
|
|
|
|
bookmarks: {
|
|
|
|
next: null,
|
|
|
|
loaded: false,
|
|
|
|
isLoading: null,
|
|
|
|
items: [],
|
|
|
|
},
|
|
|
|
pins: {
|
|
|
|
next: null,
|
|
|
|
loaded: false,
|
|
|
|
isLoading: null,
|
|
|
|
items: [],
|
|
|
|
},
|
|
|
|
scheduled_statuses: {
|
|
|
|
next: null,
|
|
|
|
loaded: false,
|
|
|
|
isLoading: null,
|
|
|
|
items: [],
|
|
|
|
},
|
2022-11-27 14:49:51 -08:00
|
|
|
joined_events: {
|
|
|
|
next: null,
|
|
|
|
loaded: false,
|
|
|
|
isLoading: null,
|
|
|
|
items: [],
|
|
|
|
},
|
|
|
|
recent_events: {
|
|
|
|
next: null,
|
|
|
|
loaded: false,
|
|
|
|
isLoading: null,
|
|
|
|
items: [],
|
|
|
|
},
|
2022-06-05 07:17:26 -07:00
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|