hablo/test/Mock/Blog/URL.hs

34 lines
637 B
Haskell

module Mock.Blog.URL (
noCards
, simple
, subPath
) where
import Blog.URL (AbsoluteURL(..), URLs(..))
import Mock.URL (testHost)
simple :: URLs
simple = URLs {
cards = Just (AbsoluteURL {
Blog.URL.host = testHost
, urlPath = ""
, urlParams = []
})
, comments = Nothing
, rss = Nothing
}
subPath :: URLs
subPath = URLs {
cards = Just (AbsoluteURL {
Blog.URL.host = testHost
, urlPath = "subPath"
, urlParams = []
})
, comments = Nothing
, rss = Nothing
}
noCards :: URLs
noCards = simple {cards = Nothing}