Skip to content

Commit

Permalink
Set relfilesuffix for tests refelcting behavior in preview pane
Browse files Browse the repository at this point in the history
  • Loading branch information
ViToni committed Mar 18, 2024
1 parent a509fc5 commit 2a9583f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/test/asciidoctorWebViewConverter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,13 @@ async function testAsciidoctorWebViewConverter (
antoraDocumentContext,
undefined
)
const html = processor.convert(input, { converter: asciidoctorWebViewConverter })

const html = processor.convert(input, {
converter: asciidoctorWebViewConverter,
// required for navigation between source files in preview
// see: https://docs.asciidoctor.org/asciidoc/latest/macros/inter-document-xref/#navigating-between-source-files
attributes: { relfilesuffix: '.adoc' },
})
assert.strictEqual(html, expected)
}

Expand Down

0 comments on commit 2a9583f

Please sign in to comment.