[Test] Add MFM test

This commit is contained in:
syuilo 2018-11-07 19:58:05 +09:00
parent 9dd21a19ff
commit 501b07c383
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69

View file

@ -247,6 +247,13 @@ describe('Text', () => {
assert.deepEqual( assert.deepEqual(
{ type: 'text', content: 'a [a]\nb [b]\nc [c]' } { type: 'text', content: 'a [a]\nb [b]\nc [c]' }
, tokens3[0]); , tokens3[0]);
const tokens4 = analyze('foo\n【bar】\nbuzz');
assert.deepEqual([
{ type: 'foo', content: 'foo\n' },
{ type: 'title', content: '【bar】\n', title: 'bar' },
{ type: 'foo', content: 'buzz' },
], tokens4);
}); });
}); });