Fix emoji search test
This commit is contained in:
parent
1fed96e99e
commit
476ae0a68d
1 changed files with 5 additions and 15 deletions
|
@ -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);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue