diff options
| author | Vojta Jina | 2010-11-22 23:38:49 +0100 |
|---|---|---|
| committer | Igor Minar | 2010-11-25 08:51:32 -0800 |
| commit | bd14a90610fa90802c7f61310fa8f18d4d868de0 (patch) | |
| tree | b96ec0a7edbd5270bc377dd2c2b28420bc36c8b0 /docs/spec | |
| parent | 9f1b9849d864da17a7a3dd42a81abcd92d451471 (diff) | |
| download | angular.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.js | 5 |
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() { |
