Skip to content

Commit d54f09e

Browse files
committed
add spec for incrementing headings
1 parent 65989c6 commit d54f09e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

docs/spec/collectSpec.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,12 @@ describe('collect', function(){
208208
'<p>dad<a href="#!angular.foo"><code>angular.foo</code></a></p>\n\n' +
209209
'<p><a href="#!angular.directive.ng:foo"><code>ng:foo</code></a></p>');
210210
});
211+
212+
it('should increment all headings by one', function() {
213+
TAG.description(doc, 'description', '# foo\nabc');
214+
expect(doc.description).
215+
toBe('<h2>foo</h2>\n\n<p>abc</p>');
216+
});
211217
});
212218

213219
describe('@example', function(){

0 commit comments

Comments
 (0)