From c85198d8cb6ce055c788e287c7f2470eac0aad36 Mon Sep 17 00:00:00 2001 From: Gabriel Aumala Date: Sun, 30 Sep 2018 14:38:57 -0500 Subject: Drop extension when parsing dates in filepaths Drop the file extension when parsing the date from the filepath of a resource. --- tests/Hakyll/Web/Template/Context/Tests.hs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/Hakyll/Web/Template/Context') diff --git a/tests/Hakyll/Web/Template/Context/Tests.hs b/tests/Hakyll/Web/Template/Context/Tests.hs index f263391..d4a9035 100644 --- a/tests/Hakyll/Web/Template/Context/Tests.hs +++ b/tests/Hakyll/Web/Template/Context/Tests.hs @@ -41,6 +41,10 @@ testDateField = do dateField "date" "%B %e, %Y" date2 @=? "August 26, 2010" + date3 <- testContextDone store provider + "posts/2018-09-26.md" "date" $ + dateField "date" "%B %e, %Y" + date3 @=? "September 26, 2018" cleanTestEnv -- cgit v1.2.3