Skip to content

Commit 58eac4f

Browse files
committed
Set relfilesuffix for tests reflecting behavior of preview pane
1 parent 6230a0b commit 58eac4f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/test/asciidoctorWebViewConverter.test.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,13 @@ async function testAsciidoctorWebViewConverter (
5454
antoraDocumentContext,
5555
undefined
5656
)
57-
const html = processor.convert(input, { converter: asciidoctorWebViewConverter })
57+
58+
const html = processor.convert(input, {
59+
converter: asciidoctorWebViewConverter,
60+
// required for navigation between source files in preview
61+
// see: https://docs.asciidoctor.org/asciidoc/latest/macros/inter-document-xref/#navigating-between-source-files
62+
attributes: { relfilesuffix: '.adoc' },
63+
})
5864
assert.strictEqual(html, expected)
5965
}
6066

0 commit comments

Comments
 (0)