Minoru / hakyll-convert

Import from other blog engines to Hakyll
Other
7 stars 0 forks source link

Bring `savePost` under tests #19

Closed Minoru closed 3 years ago

Minoru commented 4 years ago

hakyll-convert (the executable) contains an important function savePost that writes posts to disk. We need to ensure its correctness, so we have to write tests for it. To achieve that, the function must be moved into the hakyll-convert (the library).

https://github.com/Minoru/hakyll-convert/blob/202bacb8896019ce9b9b20f8271390c0950b7674/app/hakyll-convert.hs#L115-L117