diff options
Diffstat (limited to 'webapp/tests')
-rw-r--r-- | webapp/tests/formatting_links.test.jsx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/webapp/tests/formatting_links.test.jsx b/webapp/tests/formatting_links.test.jsx index 237ef6121..30461e6be 100644 --- a/webapp/tests/formatting_links.test.jsx +++ b/webapp/tests/formatting_links.test.jsx @@ -501,4 +501,18 @@ describe('Markdown.Links', function() { done(); }); + + it('Links containing %', function(done) { + assert.equal( + Markdown.format('https://en.wikipedia.org/wiki/%C3%89').trim(), + '<p><a class="theme markdown__link" href="https://en.wikipedia.org/wiki/%C3%89" rel="noreferrer" target="_blank">https://en.wikipedia.org/wiki/%C3%89</a></p>' + ); + + assert.equal( + Markdown.format('https://en.wikipedia.org/wiki/%E9').trim(), + '<p><a class="theme markdown__link" href="https://en.wikipedia.org/wiki/%E9" rel="noreferrer" target="_blank">https://en.wikipedia.org/wiki/%E9</a></p>' + ); + + done(); + }); }); |