bigbuffet-rw/app/soapbox/reducers/__tests__/compose-test.js

31 lines
744 B
JavaScript
Raw Normal View History

2020-06-09 18:08:07 -07:00
import reducer from '../compose';
describe('compose reducer', () => {
it('should return the initial state', () => {
expect(reducer(undefined, {}).toJS()).toMatchObject({
mounted: 0,
sensitive: false,
spoiler: false,
spoiler_text: '',
privacy: null,
text: '',
focusDate: null,
caretPosition: null,
in_reply_to: null,
is_composing: false,
is_submitting: false,
is_changing_upload: false,
is_uploading: false,
progress: 0,
media_attachments: [],
poll: null,
suggestion_token: null,
suggestions: [],
default_privacy: 'public',
default_sensitive: false,
idempotencyKey: null,
tagHistory: [],
});
});
});