Revert "Merge branch 'patch-1' into 'develop'"
This reverts commit20bfeb1db6
, reversing changes made to475881e80b
.
This commit is contained in:
parent
30a5a0baa9
commit
9b66611540
1 changed files with 13 additions and 1 deletions
|
@ -168,8 +168,20 @@ 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({ sensitive: true });
|
||||
const state = ImmutableMap({ spoiler: false, sensitive: true });
|
||||
const action = {
|
||||
type: actions.COMPOSE_SENSITIVITY_CHANGE,
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue