update test

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2022-09-16 16:25:01 +02:00
parent c31e13b0a5
commit 9b51b16e78

View file

@ -170,14 +170,14 @@ describe('compose reducer', () => {
}); });
}); });
it('sets default scope on settings save (but retains current scope)', () => { it('sets default scope on settings save', () => {
const state = initialState.set('default', ReducerCompose({ privacy: 'public' })); const state = initialState.set('default', ReducerCompose({ privacy: 'public' }));
const action = { const action = {
type: ME_PATCH_SUCCESS, type: ME_PATCH_SUCCESS,
me: { pleroma: { settings_store: { soapbox_fe: { defaultPrivacy: 'unlisted' } } } }, me: { pleroma: { settings_store: { soapbox_fe: { defaultPrivacy: 'unlisted' } } } },
}; };
expect(reducer(state, action).toJS().default).toMatchObject({ expect(reducer(state, action).toJS().default).toMatchObject({
privacy: 'public', privacy: 'unlisted',
}); });
}); });