From 476ae0a68d49b605d2b422599691e69de9053fc7 Mon Sep 17 00:00:00 2001 From: Chewbacca Date: Mon, 5 Jun 2023 13:17:48 -0400 Subject: [PATCH] Fix emoji search test --- .../emoji/__tests__/emoji-index.test.ts | 20 +++++-------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/app/soapbox/features/emoji/__tests__/emoji-index.test.ts b/app/soapbox/features/emoji/__tests__/emoji-index.test.ts index 59e2e9bef..925e2627a 100644 --- a/app/soapbox/features/emoji/__tests__/emoji-index.test.ts +++ b/app/soapbox/features/emoji/__tests__/emoji-index.test.ts @@ -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); });