From 76c80bd84d0e5fe7fbc09debb6641dd37e199164 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 eb4a97a81..28e8c23b4 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', [