Fix emoji search test

environments/review-improve-em-zsrjdy/deployments/3463
Chewbacca 2023-06-05 13:17:48 -04:00
rodzic 1fed96e99e
commit 476ae0a68d
1 zmienionych plików z 5 dodań i 15 usunięć

Wyświetl plik

@ -19,22 +19,12 @@ describe('emoji_index', () => {
it('orders search results correctly', () => {
const expected = [
{
id: 'pineapple',
unified: '1f34d',
native: '🍍',
},
{
id: 'apple',
unified: '1f34e',
native: '🍎',
},
{
id: 'green_apple',
unified: '1f34f',
native: '🍏',
},
{ id: 'apple', unified: '1f34e', native: '🍎' },
{ id: 'pineapple', unified: '1f34d', native: '🍍' },
{ id: 'green_apple', unified: '1f34f', native: '🍏' },
{ id: 'iphone', unified: '1f4f1', native: '📱' },
];
expect(search('apple').map(trimEmojis)).toEqual(expected);
});