Skip to content

Commit

Permalink
modify tests to match the change
Browse files Browse the repository at this point in the history
  • Loading branch information
getusha committed Jun 28, 2023
1 parent 45f02e0 commit 2a1caf9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/unit/EmojiTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ describe('EmojiTest', () => {
expect(lodashGet(EmojiUtils.replaceEmojis(text), 'text')).toBe('Hi 😄 ');
});

it('will not add a space after the last emoji if there is text after it', () => {
const text = 'Hi :smile::wave:no space after last emoji';
expect(lodashGet(EmojiUtils.replaceEmojis(text), 'text')).toBe('Hi 😄👋no space after last emoji');
it('will add a space after the last emoji if there is text after it', () => {
const text = 'Hi :smile::wave:space after last emoji';
expect(lodashGet(EmojiUtils.replaceEmojis(text), 'text')).toBe('Hi 😄👋 space after last emoji');
});

it('suggests emojis when typing emojis prefix after colon', () => {
Expand Down

0 comments on commit 2a1caf9

Please sign in to comment.