From 41e7b8cf18ae29a57b518437c706a7c7c377fc15 Mon Sep 17 00:00:00 2001 From: Taeer Bar-Yam Date: Sat, 25 May 2019 02:28:34 -0700 Subject: Add option to specify date in directory structure --- tests/Hakyll/Web/Template/Context/Tests.hs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/Hakyll/Web/Template') 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 -- cgit v1.2.3