mirror of
https://github.com/Start9Labs/registry.git
synced 2026-03-26 02:11:53 +00:00
base test setup
This commit is contained in:
20
test/Handler/AppSpec.hs
Normal file
20
test/Handler/AppSpec.hs
Normal 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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user