summaryrefslogtreecommitdiff
path: root/tests/Hakyll
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Hakyll')
-rw-r--r--tests/Hakyll/Core/Rules/Tests.hs4
-rw-r--r--tests/Hakyll/Web/Template/Tests.hs4
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/Hakyll/Core/Rules/Tests.hs b/tests/Hakyll/Core/Rules/Tests.hs
index 4fcb19d..27440dc 100644
--- a/tests/Hakyll/Core/Rules/Tests.hs
+++ b/tests/Hakyll/Core/Rules/Tests.hs
@@ -20,7 +20,7 @@ import Hakyll.Core.Routes
import Hakyll.Core.Rules
import Hakyll.Core.Rules.Internal
import Hakyll.Core.Writable.CopyFile
-import Hakyll.Web.Page
+import Hakyll.Web.Pandoc
import TestSuite.Util
@@ -61,7 +61,7 @@ rules = do
-- Compile some posts
match "*.md" $ do
route $ setExtension "html"
- compile pageCompiler
+ compile pandocCompiler
-- Compile them, raw
match "*.md" $ version "raw" $ do
diff --git a/tests/Hakyll/Web/Template/Tests.hs b/tests/Hakyll/Web/Template/Tests.hs
index 4e49d1f..6c5c77a 100644
--- a/tests/Hakyll/Web/Template/Tests.hs
+++ b/tests/Hakyll/Web/Template/Tests.hs
@@ -15,7 +15,7 @@ import Test.HUnit (Assertion, (@=?))
--------------------------------------------------------------------------------
import Hakyll.Core.Item
import Hakyll.Core.Provider
-import Hakyll.Web.Page
+import Hakyll.Web.Pandoc
import Hakyll.Web.Template
import Hakyll.Web.Template.Context
import TestSuite.Util
@@ -36,7 +36,7 @@ case01 = withTestStore $ \store -> do
out <- resourceString provider "template.html.out"
tpl <- testCompilerDone store provider "template.html" $ templateCompiler
item <- testCompilerDone store provider "example.md" $
- pageCompiler >>= applyTemplate (itemBody tpl) testContext
+ pandocCompiler >>= applyTemplate (itemBody tpl) testContext
out @=? itemBody item