2020-06-08 22:45:16 +02:00
|
|
|
module Mock.Article (
|
|
|
|
noDescription
|
|
|
|
, noImage
|
|
|
|
, noMeta
|
|
|
|
, simple
|
|
|
|
) where
|
|
|
|
|
|
|
|
import Article (Article(..))
|
|
|
|
import qualified Data.Map as Map (fromList)
|
|
|
|
import Markdown (Markdown(..))
|
2020-06-09 15:21:29 +02:00
|
|
|
import Mock.Markdown (article)
|
2020-06-08 22:45:16 +02:00
|
|
|
|
|
|
|
simple :: Article
|
2020-06-09 15:21:29 +02:00
|
|
|
simple = Article article
|
2020-06-08 22:45:16 +02:00
|
|
|
|
|
|
|
noImage :: Article
|
2020-06-09 15:21:29 +02:00
|
|
|
noImage = Article $ article {metadata = Map.fromList [("summary", "It's a test")]}
|
2020-06-08 22:45:16 +02:00
|
|
|
|
|
|
|
noDescription :: Article
|
2020-06-09 15:21:29 +02:00
|
|
|
noDescription = Article $ article {metadata = Map.fromList [("featuredImage", "test.png")]}
|
2020-06-08 22:45:16 +02:00
|
|
|
|
|
|
|
noMeta :: Article
|
2020-06-09 15:21:29 +02:00
|
|
|
noMeta = Article $ article {metadata = Map.fromList []}
|