Skip to content
Snippets Groups Projects
Unverified Commit 995cf503 authored by syuilo's avatar syuilo
Browse files

Add MFM test

parent 0e49c11a
No related branches found
No related tags found
No related merge requests found
......@@ -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([
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment