Page MenuHomePhorge

D6412.1768379354.diff
No OneTemporary

Size
801 B
Referenced Files
None
Subscribers
None

D6412.1768379354.diff

diff --git a/lib/shared/emojis.test.js b/lib/shared/emojis.test.js
new file mode 100644
--- /dev/null
+++ b/lib/shared/emojis.test.js
@@ -0,0 +1,25 @@
+// @flow
+
+import { onlyOneEmojiRegex } from './emojis';
+
+describe('onlyOneEmojiRegex', () => {
+ it('should match for (πŸ‘)', () => {
+ expect('πŸ‘').toMatch(onlyOneEmojiRegex);
+ });
+
+ it('should match for (🫑)', () => {
+ expect('🫑').toMatch(onlyOneEmojiRegex);
+ });
+
+ it('should match for (🦢🏾)', () => {
+ expect('🦢🏾').toMatch(onlyOneEmojiRegex);
+ });
+
+ it('should not match for (πŸ¦ΆπŸΎπŸ™)', () => {
+ expect('πŸ¦ΆπŸΎπŸ™').not.toMatch(onlyOneEmojiRegex);
+ });
+
+ it('should not match for (that is πŸ”₯)', () => {
+ expect('that is πŸ”₯').not.toMatch(onlyOneEmojiRegex);
+ });
+});

File Metadata

Mime Type
text/plain
Expires
Wed, Jan 14, 8:29 AM (41 m, 50 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5931135
Default Alt Text
D6412.1768379354.diff (801 B)

Event Timeline