mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-13 13:37:31 -07:00
[Test] Add MFM test
This commit is contained in:
parent
5c52db9f35
commit
6b99e1695c
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