Assume everyone is GV2-capable
This commit is contained in:
parent
0a52318be6
commit
effe5aae6f
22 changed files with 16 additions and 405 deletions
|
@ -47,10 +47,8 @@ import {
|
|||
import { updateRemoteConfig } from '../../../test-both/helpers/RemoteConfigStub';
|
||||
|
||||
const {
|
||||
cantAddContactToGroup,
|
||||
clearGroupCreationError,
|
||||
clearInvitedUuidsForNewlyCreatedGroup,
|
||||
closeCantAddContactToGroupModal,
|
||||
closeContactSpoofingReview,
|
||||
closeMaximumGroupSizeModal,
|
||||
closeRecommendedGroupSizeModal,
|
||||
|
@ -461,22 +459,6 @@ describe('both/state/ducks/conversations', () => {
|
|||
});
|
||||
});
|
||||
|
||||
describe('CANT_ADD_CONTACT_TO_GROUP', () => {
|
||||
it('marks the conversation ID as "cannot add"', () => {
|
||||
const state = {
|
||||
...getEmptyState(),
|
||||
composer: defaultChooseGroupMembersComposerState,
|
||||
};
|
||||
const action = cantAddContactToGroup('abc123');
|
||||
const result = reducer(state, action);
|
||||
|
||||
assert(
|
||||
result.composer?.step === ComposerStep.ChooseGroupMembers &&
|
||||
result.composer.cantAddContactIdForModal === 'abc123'
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
describe('CLEAR_GROUP_CREATION_ERROR', () => {
|
||||
it('clears the group creation error', () => {
|
||||
const state = {
|
||||
|
@ -512,26 +494,6 @@ describe('both/state/ducks/conversations', () => {
|
|||
});
|
||||
});
|
||||
|
||||
describe('CLOSE_CANT_ADD_CONTACT_TO_GROUP_MODAL', () => {
|
||||
it('closes the "cannot add contact" modal"', () => {
|
||||
const state = {
|
||||
...getEmptyState(),
|
||||
composer: {
|
||||
...defaultChooseGroupMembersComposerState,
|
||||
cantAddContactIdForModal: 'abc123',
|
||||
},
|
||||
};
|
||||
const action = closeCantAddContactToGroupModal();
|
||||
const result = reducer(state, action);
|
||||
|
||||
assert(
|
||||
result.composer?.step === ComposerStep.ChooseGroupMembers &&
|
||||
result.composer.cantAddContactIdForModal === undefined,
|
||||
'Expected the contact ID to be cleared'
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
describe('CLOSE_CONTACT_SPOOFING_REVIEW', () => {
|
||||
it('closes the contact spoofing review modal if it was open', () => {
|
||||
const state = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue