Page MenuHomePhabricator

D6412.id21411.diff
No OneTemporary

D6412.id21411.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
Sat, Dec 21, 1:43 AM (17 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2682908
Default Alt Text
D6412.id21411.diff (801 B)

Event Timeline