From d15f8d4a4e8b9e366056510e64b048a53c910622 Mon Sep 17 00:00:00 2001 From: Curtis Date: Mon, 20 Jul 2020 19:28:06 +0000 Subject: [PATCH] Update compose-test.js to accommodate decoupling of CW toggle from sensitive (NSFW) assignment --- app/soapbox/reducers/__tests__/compose-test.js | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/app/soapbox/reducers/__tests__/compose-test.js b/app/soapbox/reducers/__tests__/compose-test.js index d5306aa33..c3ebe7ded 100644 --- a/app/soapbox/reducers/__tests__/compose-test.js +++ b/app/soapbox/reducers/__tests__/compose-test.js @@ -168,20 +168,8 @@ describe('compose reducer', () => { }); }); - //Remove this test once spoiler is decoupled from marking media as sensitive - it('should handle COMPOSE_SENSITIVITY_CHANGE on Mark Sensitive click, don\'t toggle if spoiler active', () => { - const state = ImmutableMap({ spoiler: true, sensitive: true, idempotencyKey: null }); - const action = { - type: actions.COMPOSE_SENSITIVITY_CHANGE, - }; - expect(reducer(state, action).toJS()).toMatchObject({ - sensitive: true, - }); - }); - - //Edit this test to not pass spoiler state once spoiler is decoupled from marking media as sensitive it('should handle COMPOSE_SENSITIVITY_CHANGE on Mark Sensitive click, toggle if spoiler inactive', () => { - const state = ImmutableMap({ spoiler: false, sensitive: true }); + const state = ImmutableMap({ sensitive: true }); const action = { type: actions.COMPOSE_SENSITIVITY_CHANGE, };