mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-22 14:05:12 +00:00
[Test] Add MFM test
This commit is contained in:
parent
9dd21a19ff
commit
501b07c383
1 changed files with 13 additions and 6 deletions
|
@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue