diff options
author | Taeer Bar-Yam <Radvendii@users.noreply.github.com> | 2019-05-25 02:28:34 -0700 |
---|---|---|
committer | Jasper Van der Jeugt <m@jaspervdj.be> | 2019-05-25 11:28:34 +0200 |
commit | 41e7b8cf18ae29a57b518437c706a7c7c377fc15 (patch) | |
tree | 12fe0d294acbeccbe8706b11da6b22425c9d2507 /tests/Hakyll/Web/Template | |
parent | 29c453dcf7f513236a94a8fe80f75041c07c1d1a (diff) | |
download | hakyll-41e7b8cf18ae29a57b518437c706a7c7c377fc15.tar.gz |
Add option to specify date in directory structure
Diffstat (limited to 'tests/Hakyll/Web/Template')
-rw-r--r-- | tests/Hakyll/Web/Template/Context/Tests.hs | 5 |
1 files changed, 5 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 |