Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3498121
D6412.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.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
Fri, Dec 20, 8:51 PM (12 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2682908
Default Alt Text
D6412.diff (801 B)
Attached To
Mode
D6412: [lib] add emoji tests file
Attached
Detach File
Event Timeline
Log In to Comment