mirror of
https://activitypub.software/TransFem-org/sfm-js
synced 2024-11-22 05:55:13 +00:00
add test
This commit is contained in:
parent
4c20bcb053
commit
047474831b
1 changed files with 8 additions and 0 deletions
|
@ -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 = `<https://github.com/syuilo/ai>`;
|
||||
assert.strictEqual(mfm.toString(mfm.parse(input2)), input2);
|
||||
});
|
||||
});
|
||||
|
||||
describe('inspect', () => {
|
||||
|
|
Loading…
Reference in a new issue