base test setup

This commit is contained in:
Lucy Cifferello
2020-03-12 17:13:58 -06:00
parent 4454351593
commit 924f5df8e1
3 changed files with 60 additions and 0 deletions

20
test/Handler/AppSpec.hs Normal file
View File

@@ -0,0 +1,20 @@
{-# LANGUAGE TypeFamilies #-}
module Handler.AppSpec (spec) where
import Startlude
import TestImport
spec :: Spec
spec = do
describe "GET /apps" $ do
withApp $ it "returns list of apps" $ do
request $ do
setMethod "GET"
setUrl ("/apps" :: Text)
printBody
bodyContains ""
statusIs 200