Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3500492
D6412.id21411.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
801 B
Referenced Files
None
Subscribers
None
D6412.id21411.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D6412: [lib] add emoji tests file
Attached
Detach File
Event Timeline
Log In to Comment