summaryrefslogtreecommitdiff
path: root/tests/Hakyll
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Hakyll')
-rw-r--r--tests/Hakyll/Web/Page/Metadata/Tests.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/Hakyll/Web/Page/Metadata/Tests.hs b/tests/Hakyll/Web/Page/Metadata/Tests.hs
index e3ceed9..badb9fb 100644
--- a/tests/Hakyll/Web/Page/Metadata/Tests.hs
+++ b/tests/Hakyll/Web/Page/Metadata/Tests.hs
@@ -54,6 +54,9 @@ tests = concat $
[ ("path", "/posts/2010-01-31-a-post.mkdwn")
, ("published", "February 20, 2000 1:00 PM")
]
+ , (@=?) "October 22, 2012" $ getField "date" $ renderDateField
+ "date" "%B %e, %Y" "Date unknown" $ Page
+ (M.singleton "date" "2012-10-22 14:35:24") ""
]
, fromAssertions "copyBodyToField"