File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,10 @@ describe("errorLinkFilter", function () {
13
13
} ) ;
14
14
15
15
it ( 'should find links in text and linkify them' , function ( ) {
16
- expect ( errorLinkFilter ( "http://ab/ (http://a/) http://1.2/v:~-123. c" ) ) .
16
+ var output = errorLinkFilter ( "http://ab/ (http://a/) http://1.2/v:~-123. c" ) ;
17
+ //temporary fix for IE8 sanitization whitespace bug
18
+ output = output . replace ( '</a>(' , '</a> (' ) ;
19
+ expect ( output ) .
17
20
toBe ( '<a href="http://ab/">http://ab/</a> ' +
18
21
'(<a href="http://a/">http://a/</a>) ' +
19
22
'<a href="http://1.2/v:~-123">http://1.2/v:~-123</a>. c' ) ;
@@ -46,4 +49,4 @@ describe("errorLinkFilter", function () {
46
49
toBe ( '<a href="http://errors.angularjs.org/very-long-version-string/$injector/nomod?p0=myApp">' +
47
50
'http://errors.angularjs.org/very-long-version-string/$inj...</a>' ) ;
48
51
} ) ;
49
- } ) ;
52
+ } ) ;
You can’t perform that action at this time.
0 commit comments