pleroma/src/reducers/reports.test.ts

20 lines
458 B
TypeScript

import reducer from './reports';
describe('reports reducer', () => {
it('should return the initial state', () => {
expect(reducer(undefined, {} as any).toJS()).toEqual({
new: {
isSubmitting: false,
account_id: null,
status_ids: [],
chat_message: null,
group: null,
entityType: '',
comment: '',
forward: false,
block: false,
rule_ids: [],
},
});
});
});