Doc specs: added test for markdown

It should replace markdown between two <pre></pre>***<pre></pre>
This commit is contained in:
Vojta Jina 2010-11-22 23:38:49 +01:00 committed by Igor Minar
parent 9f1b9849d8
commit bd14a90610

View file

@ -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() {