mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-26 08:45:14 +00:00
[Test] Add MFM test
This commit is contained in:
parent
fdcc994291
commit
e4c745bccd
1 changed files with 16 additions and 0 deletions
16
test/mfm.ts
16
test/mfm.ts
|
@ -277,6 +277,22 @@ describe('MFM', () => {
|
|||
]);
|
||||
});
|
||||
|
||||
it('multi', () => {
|
||||
const tokens = parse('<spin>:foo:</spin><spin>:foo:</spin>');
|
||||
assert.deepStrictEqual(tokens, [
|
||||
tree('spin', [
|
||||
leaf('emoji', { name: 'foo' })
|
||||
], {
|
||||
attr: 'left'
|
||||
}),
|
||||
tree('spin', [
|
||||
leaf('emoji', { name: 'foo' })
|
||||
], {
|
||||
attr: 'left'
|
||||
}),
|
||||
]);
|
||||
});
|
||||
|
||||
it('nested', () => {
|
||||
const tokens = parse('<spin><spin>:foo:</spin></spin>');
|
||||
assert.deepStrictEqual(tokens, [
|
||||
|
|
Loading…
Reference in a new issue