From c50196826c62d7e19e908055391c09a7c5187414 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 5 Nov 2018 20:14:49 +0900 Subject: [PATCH] Add test --- test/mfm.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/mfm.ts b/test/mfm.ts index 16aafd189..e09ec82a0 100644 --- a/test/mfm.ts +++ b/test/mfm.ts @@ -191,6 +191,11 @@ describe('Text', () => { { type: 'emoji', content: ':cat:', name: 'cat'}, { type: 'emoji', content: ':cat:', name: 'cat'} ], tokens2); + + const tokens3 = analyze('🍎'); + assert.deepEqual([ + { type: 'emoji', content: ':cat:', emoji: '🍎'} + ], tokens3); }); it('block code', () => {