0
0

[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(
{ type: 'text', content: 'a [a]\nb [b]\nc [c]' }
, 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);
});
});