Skip to content

Commit cc0f45a

Browse files
committed
test: fix parsing yaml history versions order
The added version in now always the lastest in the HTML table. Fixes: #45670
1 parent a82c21d commit cc0f45a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/doctool/test-doctool-html.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,11 @@ const testData = [
7979
'<div class="api_metadata">' +
8080
'<details class="changelog"><summary>History</summary>' +
8181
'<table><tbody><tr><th>Version</th><th>Changes</th></tr>' +
82+
'<tr><td>v4.2.0</td><td><p>The <code>error</code> parameter can now be' +
83+
'an arrow function.</p></td></tr>' +
8284
'<tr><td>v5.3.0, v4.2.0</td>' +
8385
'<td><p><span>Added in: v5.3.0, v4.2.0</span></p></td></tr>' +
84-
'<tr><td>v4.2.0</td><td><p>The <code>error</code> parameter can now be' +
85-
'an arrow function.</p></td></tr></tbody></table></details></div> ' +
86+
'</tbody></table></details></div> ' +
8687
'<p>Describe <code>Foobar II</code> in more detail here.' +
8788
'<a href="http://man7.org/linux/man-pages/man1/fg.1.html"><code>fg(1)' +
8889
'</code></a></p></section><section>' +

0 commit comments

Comments
 (0)