diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-01-31 15:19:59 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-01-31 15:19:59 +0900 |
| commit | 6f1e47f0b339c80112af881a85e196fee04a1166 (patch) | |
| tree | ad5fca09696a8698dd66c72d793e652b3c5da634 /test | |
| parent | Merge branch 'develop' of https://github.com/syuilo/misskey into develop (diff) | |
| download | sharkey-6f1e47f0b339c80112af881a85e196fee04a1166.tar.gz sharkey-6f1e47f0b339c80112af881a85e196fee04a1166.tar.bz2 sharkey-6f1e47f0b339c80112af881a85e196fee04a1166.zip | |
[Test] Better tests
Diffstat (limited to 'test')
| -rw-r--r-- | test/mfm.ts | 13 |
1 files changed, 12 insertions, 1 deletions
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('<spin>foo</spin>'); + assert.deepStrictEqual(tokens, [ + tree('spin', [ + text('foo') + ], { + attr: null + }), + ]); + }); + + it('emoji', () => { const tokens = parse('<spin>:foo:</spin>'); assert.deepStrictEqual(tokens, [ tree('spin', [ |