Merge branch 'patch-1' into 'develop'
Update compose-test.js to accommodate decoupling of CW toggle from sensitive (NSFW) assignment See merge request soapbox-pub/soapbox-fe!106
This commit is contained in:
commit
20bfeb1db6
1 changed files with 1 additions and 13 deletions
|
@ -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', () => {
|
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 = {
|
const action = {
|
||||||
type: actions.COMPOSE_SENSITIVITY_CHANGE,
|
type: actions.COMPOSE_SENSITIVITY_CHANGE,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue