Fix indentation in client specs
This commit is contained in:
parent
710479e109
commit
e241c5198a
1 changed files with 33 additions and 33 deletions
|
@ -174,39 +174,39 @@ sucessSpec = beforeAll (startWaiApp server) $ afterAll endWaiApp $ do
|
||||||
it "Servant.API.Get" $ \(_, baseUrl) -> do
|
it "Servant.API.Get" $ \(_, baseUrl) -> do
|
||||||
let getGet = getNth (Proxy :: Proxy 0) $ client api baseUrl manager
|
let getGet = getNth (Proxy :: Proxy 0) $ client api baseUrl manager
|
||||||
|
|
||||||
manager <- C.newManager C.defaultManagerSettings
|
manager <- C.newManager C.defaultManagerSettings
|
||||||
let getGet :: ExceptT ServantError IO Person
|
let getGet :: ExceptT ServantError IO Person
|
||||||
getDeleteEmpty :: ExceptT ServantError IO ()
|
getDeleteEmpty :: ExceptT ServantError IO ()
|
||||||
getCapture :: String -> ExceptT ServantError IO Person
|
getCapture :: String -> ExceptT ServantError IO Person
|
||||||
getBody :: Person -> ExceptT ServantError IO Person
|
getBody :: Person -> ExceptT ServantError IO Person
|
||||||
getQueryParam :: Maybe String -> ExceptT ServantError IO Person
|
getQueryParam :: Maybe String -> ExceptT ServantError IO Person
|
||||||
getQueryParams :: [String] -> ExceptT ServantError IO [Person]
|
getQueryParams :: [String] -> ExceptT ServantError IO [Person]
|
||||||
getQueryFlag :: Bool -> ExceptT ServantError IO Bool
|
getQueryFlag :: Bool -> ExceptT ServantError IO Bool
|
||||||
getMatrixParam :: Maybe String -> ExceptT ServantError IO Person
|
getMatrixParam :: Maybe String -> ExceptT ServantError IO Person
|
||||||
getMatrixParams :: [String] -> ExceptT ServantError IO [Person]
|
getMatrixParams :: [String] -> ExceptT ServantError IO [Person]
|
||||||
getMatrixFlag :: Bool -> ExceptT ServantError IO Bool
|
getMatrixFlag :: Bool -> ExceptT ServantError IO Bool
|
||||||
getRawSuccess :: Method -> ExceptT ServantError IO (Int, ByteString, MediaType, [HTTP.Header], C.Response ByteString)
|
getRawSuccess :: Method -> ExceptT ServantError IO (Int, ByteString, MediaType, [HTTP.Header], C.Response ByteString)
|
||||||
getRawFailure :: Method -> ExceptT ServantError IO (Int, ByteString, MediaType, [HTTP.Header], C.Response ByteString)
|
getRawFailure :: Method -> ExceptT ServantError IO (Int, ByteString, MediaType, [HTTP.Header], C.Response ByteString)
|
||||||
getMultiple :: String -> Maybe Int -> Bool -> [(String, [Rational])] -> ExceptT ServantError IO (String, Maybe Int, Bool, [(String, [Rational])])
|
getMultiple :: String -> Maybe Int -> Bool -> [(String, [Rational])] -> ExceptT ServantError IO (String, Maybe Int, Bool, [(String, [Rational])])
|
||||||
getRespHeaders :: ExceptT ServantError IO (Headers TestHeaders Bool)
|
getRespHeaders :: ExceptT ServantError IO (Headers TestHeaders Bool)
|
||||||
getDeleteContentType :: ExceptT ServantError IO ()
|
getDeleteContentType :: ExceptT ServantError IO ()
|
||||||
( getGet
|
( getGet
|
||||||
:<|> getDeleteEmpty
|
:<|> getDeleteEmpty
|
||||||
:<|> getCapture
|
:<|> getCapture
|
||||||
:<|> getBody
|
:<|> getBody
|
||||||
:<|> getQueryParam
|
:<|> getQueryParam
|
||||||
:<|> getQueryParams
|
:<|> getQueryParams
|
||||||
:<|> getQueryFlag
|
:<|> getQueryFlag
|
||||||
:<|> getMatrixParam
|
:<|> getMatrixParam
|
||||||
:<|> getMatrixParams
|
:<|> getMatrixParams
|
||||||
:<|> getMatrixFlag
|
:<|> getMatrixFlag
|
||||||
:<|> getRawSuccess
|
:<|> getRawSuccess
|
||||||
:<|> getRawFailure
|
:<|> getRawFailure
|
||||||
:<|> getMultiple
|
:<|> getMultiple
|
||||||
:<|> getRespHeaders
|
:<|> getRespHeaders
|
||||||
:<|> getDeleteContentType
|
:<|> getDeleteContentType
|
||||||
:<|> getPrivatePerson)
|
:<|> getPrivatePerson)
|
||||||
= client api baseUrl manager
|
= client api baseUrl manager
|
||||||
|
|
||||||
hspec $ do
|
hspec $ do
|
||||||
it "Servant.API.Get" $ do
|
it "Servant.API.Get" $ do
|
||||||
|
|
Loading…
Reference in a new issue