add spec for incrementing headings

This commit is contained in:
Igor Minar 2010-11-17 18:01:14 -08:00
parent 65989c6f0d
commit d54f09ef29

View file

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