mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-01-25 06:41:36 -07:00
Add MFM test
This commit is contained in:
parent
6d52a4b4dd
commit
38d4c0e9bb
1 changed files with 9 additions and 0 deletions
|
@ -449,6 +449,15 @@ describe('Text', () => {
|
|||
], tokens);
|
||||
});
|
||||
|
||||
it('simple (with silent flag)', () => {
|
||||
const tokens = analyze('?[foo](https://example.com)');
|
||||
assert.deepEqual([
|
||||
nodeWithChildren('link', [
|
||||
text('foo')
|
||||
], { url: 'https://example.com', silent: true })
|
||||
], tokens);
|
||||
});
|
||||
|
||||
it('in text', () => {
|
||||
const tokens = analyze('before[foo](https://example.com)after');
|
||||
assert.deepEqual([
|
||||
|
|
Loading…
Reference in a new issue