bigbuffet-rw/app/soapbox/reducers/__tests__/reports.test.ts

21 lines
459 B
TypeScript
Raw Normal View History

2022-01-10 14:01:24 -08:00
import reducer from '../reports';
2020-06-09 18:08:07 -07:00
describe('reports reducer', () => {
it('should return the initial state', () => {
expect(reducer(undefined, {} as any).toJS()).toEqual({
new: {
2020-06-09 18:08:07 -07:00
isSubmitting: false,
account_id: null,
status_ids: [],
2022-10-17 09:24:24 -07:00
chat_message: null,
2023-03-22 10:56:32 -07:00
group: null,
entityType: '',
2020-06-09 18:08:07 -07:00
comment: '',
forward: false,
block: false,
rule_ids: [],
},
});
2020-06-09 18:08:07 -07:00
});
});