From 6f1e47f0b339c80112af881a85e196fee04a1166 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 31 Jan 2019 15:19:59 +0900 Subject: [PATCH] [Test] Better tests --- test/mfm.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/test/mfm.ts b/test/mfm.ts index eb4a97a812..28e8c23b4b 100644 --- a/test/mfm.ts +++ b/test/mfm.ts @@ -255,7 +255,18 @@ describe('MFM', () => { }); describe('spin', () => { - it('simple', () => { + it('text', () => { + const tokens = parse('foo'); + assert.deepStrictEqual(tokens, [ + tree('spin', [ + text('foo') + ], { + attr: null + }), + ]); + }); + + it('emoji', () => { const tokens = parse(':foo:'); assert.deepStrictEqual(tokens, [ tree('spin', [