diff --git a/test/api.ts b/test/api.ts index a5756f4..1af36ee 100644 --- a/test/api.ts +++ b/test/api.ts @@ -19,6 +19,14 @@ https://github.com/syuilo/ai after`; assert.strictEqual(mfm.toString(mfm.parse(input)), input); }); + + it('preserve url brackets', () => { + const input1 = `https://github.com/syuilo/ai`; + assert.strictEqual(mfm.toString(mfm.parse(input1)), input1); + + const input2 = ``; + assert.strictEqual(mfm.toString(mfm.parse(input2)), input2); + }); }); describe('inspect', () => {