mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
Doc specs: added test for markdown
It should replace markdown between two <pre></pre>***<pre></pre>
This commit is contained in:
parent
9f1b9849d8
commit
bd14a90610
1 changed files with 5 additions and 0 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue