chore(docs): fix broken IE8 test due to sanitization bug

This commit is contained in:
Matias Niemelä 2013-10-04 13:43:11 -04:00
parent 1c18c93be1
commit 948e8ca325

View file

@ -13,7 +13,10 @@ describe("errorLinkFilter", function () {
}); });
it('should find links in text and linkify them', function () { it('should find links in text and linkify them', function () {
expect(errorLinkFilter("http://ab/ (http://a/) http://1.2/v:~-123. c")). var output = errorLinkFilter("http://ab/ (http://a/) http://1.2/v:~-123. c");
//temporary fix for IE8 sanitization whitespace bug
output = output.replace('</a>(','</a> (');
expect(output).
toBe('<a href="http://ab/">http://ab/</a> ' + toBe('<a href="http://ab/">http://ab/</a> ' +
'(<a href="http://a/">http://a/</a>) ' + '(<a href="http://a/">http://a/</a>) ' +
'<a href="http://1.2/v:~-123">http://1.2/v:~-123</a>. c'); '<a href="http://1.2/v:~-123">http://1.2/v:~-123</a>. c');