diff options
Diffstat (limited to 'test/mfm.ts')
| -rw-r--r-- | test/mfm.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/mfm.ts b/test/mfm.ts index 9956f679bf..ac52041bb3 100644 --- a/test/mfm.ts +++ b/test/mfm.ts @@ -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([ |