summaryrefslogtreecommitdiff
path: root/tests/Hakyll/Web/Template
diff options
context:
space:
mode:
authorBergi <a.d.bergi@web.de>2018-03-20 12:57:58 +0100
committerJasper Van der Jeugt <jaspervdj@gmail.com>2018-03-20 07:57:58 -0400
commitc28428fd8c61cfd21adba5b5fbefc0f8a1784da8 (patch)
tree35b65d133801b4e6fed8effd2286628d16f8a6ee /tests/Hakyll/Web/Template
parent9a23bfb129ca799cdeb9e893dcc82afbff742fb3 (diff)
downloadhakyll-c28428fd8c61cfd21adba5b5fbefc0f8a1784da8.tar.gz
Make Pandoc dependency optional
Diffstat (limited to 'tests/Hakyll/Web/Template')
-rw-r--r--tests/Hakyll/Web/Template/Tests.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/Hakyll/Web/Template/Tests.hs b/tests/Hakyll/Web/Template/Tests.hs
index 054a9bd..b63a0dd 100644
--- a/tests/Hakyll/Web/Template/Tests.hs
+++ b/tests/Hakyll/Web/Template/Tests.hs
@@ -16,7 +16,6 @@ import Hakyll.Core.Compiler
import Hakyll.Core.Identifier
import Hakyll.Core.Item
import Hakyll.Core.Provider
-import Hakyll.Web.Pandoc
import Hakyll.Web.Template
import Hakyll.Web.Template.Context
import Hakyll.Web.Template.Internal
@@ -89,7 +88,9 @@ test (outf, tplf, itemf) = do
out <- resourceString provider outf
tpl <- testCompilerDone store provider tplf templateBodyCompiler
item <- testCompilerDone store provider itemf $
- pandocCompiler >>= applyTemplate (itemBody tpl) testContext
+ getResourceBody
+ >>= renderParagraphs
+ >>= applyTemplate (itemBody tpl) testContext
out @=? itemBody item
cleanTestEnv