diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-08-03 23:27:37 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-08-03 23:27:37 +0900 |
| commit | d456e5e45c8a2367c9362b1e1d1e87d6959b6977 (patch) | |
| tree | afd13b2fb3c9680c592c05dcf10239f21b24a36f /test | |
| parent | Fix #2047 (diff) | |
| download | misskey-d456e5e45c8a2367c9362b1e1d1e87d6959b6977.tar.gz misskey-d456e5e45c8a2367c9362b1e1d1e87d6959b6977.tar.bz2 misskey-d456e5e45c8a2367c9362b1e1d1e87d6959b6977.zip | |
Implement new MFM syntax
Diffstat (limited to 'test')
| -rw-r--r-- | test/mfm.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/mfm.ts b/test/mfm.ts index df0f0be045..1a22e1491b 100644 --- a/test/mfm.ts +++ b/test/mfm.ts @@ -31,6 +31,14 @@ describe('Text', () => { ], tokens); }); + it('big', () => { + const tokens = analyze('***Strawberry*** Pasta'); + assert.deepEqual([ + { type: 'big', content: '***Strawberry***', bold: 'Strawberry' }, + { type: 'text', content: ' Pasta' } + ], tokens); + }); + it('mention', () => { const tokens = analyze('@himawari お腹ペコい'); assert.deepEqual([ |