From e4c745bccd0fc431b81822291aeb9f06841f6b71 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 0de2e6b2c1..9f95d93b53 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, [