Skip to content

Commit

Permalink
adjust test for target format improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
jenshalm committed Sep 24, 2023
1 parent b40a558 commit ab381f4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion io/src/test/scala/laika/io/TreeTransformerSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ class TreeTransformerSpec extends CatsEffectSuite
docs(
(Root / "doc1.fo", result)
),
staticDocuments = TestTheme.staticASTPaths,
staticDocuments = TestTheme.staticFoPaths,
outputContext = OutputContext(XSLFO)
)
)
Expand Down
19 changes: 12 additions & 7 deletions io/src/test/scala/laika/render/fo/TestTheme.scala
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,23 @@ object TestTheme {

lazy val htmlTemplate = TemplateRoot.fallback

val staticASTPaths = Seq(
Root / "helium" / "fonts" / "icofont.woff",
Root / "helium" / "fonts" / "icofont.woff2"
)

val staticHTMLPaths = Seq(
val fontPaths = Seq(
Root / "laika" / "fonts" / "Lato-Regular.ttf",
Root / "laika" / "fonts" / "Lato-Italic.ttf",
Root / "laika" / "fonts" / "Lato-Bold.ttf",
Root / "laika" / "fonts" / "Lato-BoldItalic.ttf",
Root / "laika" / "fonts" / "FiraMono-Medium.otf",
Root / "laika" / "fonts" / "icofont.ttf",
Root / "laika" / "fonts" / "icofont.ttf"
)

val staticASTPaths = Seq(
Root / "helium" / "fonts" / "icofont.woff",
Root / "helium" / "fonts" / "icofont.woff2"
)

val staticFoPaths = fontPaths ++ staticASTPaths

val staticHTMLPaths = fontPaths ++ Seq(
Root / "helium" / "site" / "laika-helium.js",
Root / "helium" / "site" / "landing-page.css",
Root / "helium" / "site" / "icofont.min.css",
Expand Down

0 comments on commit ab381f4

Please sign in to comment.