summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/Hakyll/Web/Template/Context/Tests.hs5
-rw-r--r--tests/data/posts/2019/05/10/tomorrow.md1
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/Hakyll/Web/Template/Context/Tests.hs b/tests/Hakyll/Web/Template/Context/Tests.hs
index 202b745..3adedd8 100644
--- a/tests/Hakyll/Web/Template/Context/Tests.hs
+++ b/tests/Hakyll/Web/Template/Context/Tests.hs
@@ -45,6 +45,11 @@ testDateField = do
"posts/2018-09-26.md" "date" $
dateField "date" "%B %e, %Y"
date3 @=? "September 26, 2018"
+
+ date4 <- testContextDone store provider
+ "posts/2019/05/10/tomorrow.md" "date" $
+ dateField "date" "%B %e, %Y"
+ date4 @=? "May 10, 2019"
cleanTestEnv
diff --git a/tests/data/posts/2019/05/10/tomorrow.md b/tests/data/posts/2019/05/10/tomorrow.md
new file mode 100644
index 0000000..b3edce5
--- /dev/null
+++ b/tests/data/posts/2019/05/10/tomorrow.md
@@ -0,0 +1 @@
+This day hasn't happened yet (as of writing this).