First-class profile name rendering

This commit is contained in:
Scott Nonnenberg 2020-07-23 18:35:32 -07:00
parent 632cd0e87e
commit d07b8e82b2
63 changed files with 1044 additions and 454 deletions

View file

@ -9,8 +9,6 @@ import {
describe('state/selectors/conversations', () => {
describe('#getLeftPaneList', () => {
it('sorts conversations based on timestamp then by intl-friendly title', () => {
const i18n = (key: string) => key;
const regionCode = 'US';
const data: ConversationLookupType = {
id1: {
id: 'id1',
@ -133,7 +131,7 @@ describe('state/selectors/conversations', () => {
acceptedMessageRequest: true,
},
};
const comparator = _getConversationComparator(i18n, regionCode);
const comparator = _getConversationComparator();
const { conversations } = _getLeftPaneLists(data, comparator);
assert.strictEqual(conversations[0].name, 'First!');