Add MFM test

This commit is contained in:
syuilo 2018-11-25 13:21:39 +09:00
parent 0e49c11a4c
commit 995cf503eb
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69
1 changed files with 9 additions and 0 deletions

View File

@ -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([