From 6b99e1695c1193635139192619c98e34050a7346 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 31 Jan 2019 14:31:25 +0900 Subject: [PATCH] [Test] Add MFM test --- test/mfm.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/test/mfm.ts b/test/mfm.ts index 0de2e6b2c..9f95d93b5 100644 --- a/test/mfm.ts +++ b/test/mfm.ts @@ -277,6 +277,22 @@ describe('MFM', () => { ]); }); + it('multi', () => { + const tokens = parse(':foo::foo:'); + assert.deepStrictEqual(tokens, [ + tree('spin', [ + leaf('emoji', { name: 'foo' }) + ], { + attr: 'left' + }), + tree('spin', [ + leaf('emoji', { name: 'foo' }) + ], { + attr: 'left' + }), + ]); + }); + it('nested', () => { const tokens = parse(':foo:'); assert.deepStrictEqual(tokens, [