From 80f67b128c320ceacb83ccc22aa4000ce8230954 Mon Sep 17 00:00:00 2001 From: Fabien MICHEL Date: Sun, 4 Dec 2022 23:24:03 +0100 Subject: [PATCH] test: fix parsing yaml history versions order The added version in now always the lastest in the HTML table. Fixes: https://github.com/nodejs/node/issues/45670 --- test/doctool/test-doctool-html.mjs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/doctool/test-doctool-html.mjs b/test/doctool/test-doctool-html.mjs index 9323548221b599..6fbca131851f3b 100644 --- a/test/doctool/test-doctool-html.mjs +++ b/test/doctool/test-doctool-html.mjs @@ -79,10 +79,11 @@ const testData = [ '
' + '
History' + '' + + '' + '' + '' + - '
VersionChanges
v4.2.0

The error parameter can now be' + + 'an arrow function.

v5.3.0, v4.2.0

Added in: v5.3.0, v4.2.0

v4.2.0

The error parameter can now be' + - 'an arrow function.

' + + ' ' + '

Describe Foobar II in more detail here.' + 'fg(1)' + '

' +