Add markdown reducer tests

This commit is contained in:
Alex Gleason 2020-07-28 13:53:01 -05:00
parent b31cf22f43
commit eda4c7d629
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -32,6 +32,7 @@ describe('compose reducer', () => {
default_sensitive: false, default_sensitive: false,
idempotencyKey: null, idempotencyKey: null,
tagHistory: [], tagHistory: [],
content_type: 'text/markdown',
}); });
}); });
@ -777,4 +778,11 @@ describe('compose reducer', () => {
// }); // });
// }); // });
it('sets the post content-type', () => {
const action = {
type: actions.COMPOSE_TYPE_CHANGE,
value: 'text/plain',
};
expect(reducer(undefined, action).toJS()).toMatchObject({ content_type: 'text/plain' });
});
}); });