Assume everyone is GV2-capable
This commit is contained in:
parent
0a52318be6
commit
effe5aae6f
22 changed files with 16 additions and 405 deletions
|
@ -18,7 +18,6 @@ import {
|
|||
_getLeftPaneLists,
|
||||
getAllComposableConversations,
|
||||
getCandidateContactsForNewGroup,
|
||||
getCantAddContactForModal,
|
||||
getComposableContacts,
|
||||
getComposableGroups,
|
||||
getComposeGroupAvatar,
|
||||
|
@ -1162,53 +1161,6 @@ describe('both/state/selectors/conversations', () => {
|
|||
});
|
||||
});
|
||||
|
||||
describe('#getCantAddContactForModal', () => {
|
||||
it('returns undefined if not in the "choose group members" composer step', () => {
|
||||
assert.isUndefined(getCantAddContactForModal(getEmptyRootState()));
|
||||
|
||||
assert.isUndefined(
|
||||
getCantAddContactForModal({
|
||||
...getEmptyRootState(),
|
||||
conversations: {
|
||||
...getEmptyState(),
|
||||
composer: defaultStartDirectConversationComposerState,
|
||||
},
|
||||
})
|
||||
);
|
||||
});
|
||||
|
||||
it("returns undefined if there's no contact marked", () => {
|
||||
assert.isUndefined(
|
||||
getCantAddContactForModal({
|
||||
...getEmptyRootState(),
|
||||
conversations: {
|
||||
...getEmptyState(),
|
||||
composer: defaultChooseGroupMembersComposerState,
|
||||
},
|
||||
})
|
||||
);
|
||||
});
|
||||
|
||||
it('returns the marked contact', () => {
|
||||
const conversation = makeConversation('abc123');
|
||||
|
||||
assert.deepEqual(
|
||||
getCantAddContactForModal({
|
||||
...getEmptyRootState(),
|
||||
conversations: {
|
||||
...getEmptyState(),
|
||||
conversationLookup: { abc123: conversation },
|
||||
composer: {
|
||||
...defaultChooseGroupMembersComposerState,
|
||||
cantAddContactIdForModal: 'abc123',
|
||||
},
|
||||
},
|
||||
}),
|
||||
conversation
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
describe('#getComposerConversationSearchTerm', () => {
|
||||
it("returns the composer's contact search term", () => {
|
||||
assert.strictEqual(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue