aboutsummaryrefslogtreecommitdiffstats
path: root/docs/spec
diff options
context:
space:
mode:
authorVojta Jina2010-11-22 23:38:49 +0100
committerIgor Minar2010-11-25 08:51:32 -0800
commitbd14a90610fa90802c7f61310fa8f18d4d868de0 (patch)
treeb96ec0a7edbd5270bc377dd2c2b28420bc36c8b0 /docs/spec
parent9f1b9849d864da17a7a3dd42a81abcd92d451471 (diff)
downloadangular.js-bd14a90610fa90802c7f61310fa8f18d4d868de0.tar.bz2
Doc specs: added test for markdown
It should replace markdown between two <pre></pre>***<pre></pre>
Diffstat (limited to 'docs/spec')
-rw-r--r--docs/spec/collectSpec.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/spec/collectSpec.js b/docs/spec/collectSpec.js
index 8002e0d6..86af0810 100644
--- a/docs/spec/collectSpec.js
+++ b/docs/spec/collectSpec.js
@@ -19,6 +19,11 @@ describe('collect', function(){
'<pre>\nangular.k\n</pre>' +
'<p>asdf x</p>');
});
+
+ it('should replace text between two <pre></pre> tags', function() {
+ expect(collect.markdown('<pre>x</pre># One<pre>b</pre>')).
+ toEqual('<pre>x</pre><h1>One</h1><pre>b</pre>');
+ });
});
describe('processNgDoc', function() {