diff options
| author | Igor Minar | 2010-11-17 18:01:14 -0800 |
|---|---|---|
| committer | Igor Minar | 2010-11-18 02:35:29 -0800 |
| commit | d54f09ef29356d4c8ba71d3b37bbebd379627648 (patch) | |
| tree | 36ae003669eebc295ff92002daab6cfe52ea5c4b /docs | |
| parent | 65989c6f0d13b8f205ab929999a4b9f66c8c1c93 (diff) | |
| download | angular.js-d54f09ef29356d4c8ba71d3b37bbebd379627648.tar.bz2 | |
add spec for incrementing headings
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/spec/collectSpec.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/spec/collectSpec.js b/docs/spec/collectSpec.js index f6b5a319..2261b7a0 100644 --- a/docs/spec/collectSpec.js +++ b/docs/spec/collectSpec.js @@ -208,6 +208,12 @@ describe('collect', function(){ '<p>dad<a href="#!angular.foo"><code>angular.foo</code></a></p>\n\n' + '<p><a href="#!angular.directive.ng:foo"><code>ng:foo</code></a></p>'); }); + + it('should increment all headings by one', function() { + TAG.description(doc, 'description', '# foo\nabc'); + expect(doc.description). + toBe('<h2>foo</h2>\n\n<p>abc</p>'); + }); }); describe('@example', function(){ |
