summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/mfm.ts14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/mfm.ts b/test/mfm.ts
index 03d9f593af..12d9563e58 100644
--- a/test/mfm.ts
+++ b/test/mfm.ts
@@ -639,6 +639,20 @@ describe('MFM', () => {
text('/bar'),
]);
});
+
+ it('ignore Keycap Number Sign (U+0023 + U+20E3)', () => {
+ const tokens = parse('#⃣');
+ assert.deepStrictEqual(tokens, [
+ leaf('emoji', { emoji: '#⃣' })
+ ]);
+ });
+
+ it('ignore Keycap Number Sign (U+0023 + U+FE0F + U+20E3)', () => {
+ const tokens = parse('#️⃣');
+ assert.deepStrictEqual(tokens, [
+ leaf('emoji', { emoji: '#️⃣' })
+ ]);
+ });
});
describe('quote', () => {