30 lines
744 B
JavaScript
30 lines
744 B
JavaScript
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: [],
|
|
});
|
|
});
|
|
});
|