From eda4c7d6295419f942813cd0fe58c073351ba4d5 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 28 Jul 2020 13:53:01 -0500 Subject: [PATCH] Add markdown reducer tests --- app/soapbox/reducers/__tests__/compose-test.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/soapbox/reducers/__tests__/compose-test.js b/app/soapbox/reducers/__tests__/compose-test.js index c3ebe7ded..62eb472a9 100644 --- a/app/soapbox/reducers/__tests__/compose-test.js +++ b/app/soapbox/reducers/__tests__/compose-test.js @@ -32,6 +32,7 @@ describe('compose reducer', () => { default_sensitive: false, idempotencyKey: null, 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' }); + }); });