Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

fix(ngdocs): add ids to headers in tests #4796

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/spec/ngdocSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ describe('ngdoc', function() {

it('should replace text between two <pre></pre> tags', function() {
expect(new Doc().markdown('<pre>x</pre>\n# One\n<pre>b</pre>')).
toMatch('</pre>\n<h1>One</h1>\n<pre');
toMatch('</pre>\n<h1 id="one">One</h1>\n<pre');
});

it('should replace inline variable type hints', function() {
Expand Down Expand Up @@ -441,7 +441,7 @@ describe('ngdoc', function() {
expect(doc.description).
toBe('<div class="a-page"><p>foo \n' +
'<pre class="prettyprint linenums">abc</pre>\n' +
'<h1>bah</h1>\n' +
'<h1 id="bah">bah</h1>\n' +
'<p>foo \n' +
'<pre class="prettyprint linenums">cba</pre>\n</div>');
});
Expand Down