aboutsummaryrefslogtreecommitdiffstats
path: root/docs/spec/ngdocSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'docs/spec/ngdocSpec.js')
-rw-r--r--docs/spec/ngdocSpec.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/spec/ngdocSpec.js b/docs/spec/ngdocSpec.js
index cf469063..4abaf0c4 100644
--- a/docs/spec/ngdocSpec.js
+++ b/docs/spec/ngdocSpec.js
@@ -62,12 +62,12 @@ describe('ngdoc', function(){
toEqual('<p><tt>&lt;angular/&gt;</tt></p>');
});
- it('should not replace anything in <pre>', function(){
- expect(markdown('bah x\n<pre>\nangular.k\n</pre>\n asdf x')).
+ it('should not replace anything in <pre>, but escape the html escape the content', function(){
+ expect(markdown('bah x\n<pre>\n<b>angular</b>.k\n</pre>\n asdf x')).
toEqual(
'<p>bah x</p>' +
'<div ng:non-bindable><pre class="brush: js; html-script: true;">\n' +
- 'angular.k\n' +
+ '&lt;b&gt;angular&lt;/b&gt;.k\n' +
'</pre></div>' +
'<p>asdf x</p>');
});