Fix emoji search test

This commit is contained in:
Chewbacca 2023-06-05 13:17:48 -04:00
parent 1fed96e99e
commit 476ae0a68d

View file

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