Skip to content

Commit

Permalink
ref: move removeInvisibleCharacters to TS
Browse files Browse the repository at this point in the history
  • Loading branch information
kubabutkiewicz committed Feb 29, 2024
1 parent 139ba77 commit 3fb82d4
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import _ from 'underscore';
import enEmojis from '../../assets/emojis/en';
import StringUtils from '../../src/libs/StringUtils';

Expand Down Expand Up @@ -80,7 +79,7 @@ describe('libs/StringUtils.removeInvisibleCharacters', () => {
expect(StringUtils.removeInvisibleCharacters('test😀😀😀')).toBe('test😀😀😀');
});
it('all emojis not removed', () => {
_.keys(enEmojis).forEach((key) => {
Object.keys(enEmojis).forEach((key) => {
expect(StringUtils.removeInvisibleCharacters(key)).toBe(key);
});
});
Expand Down

0 comments on commit 3fb82d4

Please sign in to comment.