From b5692b4b0656b122aaf685fbb7216ed5058dd39a Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Tue, 16 Feb 2021 15:24:45 +0100 Subject: [PATCH] test: fix test-doctool-html Refs: https://github.com/nodejs/node/pull/37301 PR-URL: https://github.com/nodejs/node/pull/37397 Reviewed-By: Danielle Adams Reviewed-By: Rich Trott Reviewed-By: Darshan Sen --- test/doctool/test-doctool-html.js | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/test/doctool/test-doctool-html.js b/test/doctool/test-doctool-html.js index 1608eb04970222..97d4f36d9e5bda 100644 --- a/test/doctool/test-doctool-html.js +++ b/test/doctool/test-doctool-html.js @@ -72,10 +72,11 @@ const testData = [ html: '

Sample Markdown with YAML info' + '#

' + - '

Foobar

Foobar#

' + ' ' + '

Describe Foobar in more detail here.

' + + '
' + '

Foobar II#

' + '

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

Deprecated thingy

' + + '

Deprecated thingy#' + '

Describe ' + 'Deprecated thingy in more detail here.' + 'fg(1p)' + - '

Something#

' + ' ' + - '

Describe Something in more detail here.

' + '

Describe Something in more detail here.

' }, { file: fixtures.path('sample_document.md'), @@ -110,16 +113,18 @@ const testData = [ file: fixtures.path('document_with_links.md'), html: '

Usage and Example#' + - '

Usage

Usage#

node \\[options\\] index.js' + '

Please see the' + - 'Command Line Optionsdocument for more information.

' + + 'Command Line Optionsdocument for more information.

' + + '

' + 'Example' + '#

An example of a' + 'webserverwritten with Node.js which responds with' + - '\'Hello, World!\':

See also:

' + + '

See also#

Check' + - 'out alsothis guide

' + 'out alsothis guide

' }, { file: fixtures.path('document_with_special_heading.md'),