From 2c2a2fcb54d927e1ee83a5f777caec1538758466 Mon Sep 17 00:00:00 2001 From: Timo von Holtz Date: Wed, 4 Mar 2015 08:59:36 +1100 Subject: [PATCH] Extend tests with more content types --- test/Servant/JQuerySpec.hs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/Servant/JQuerySpec.hs b/test/Servant/JQuerySpec.hs index 8952018f..ce06e98f 100644 --- a/test/Servant/JQuerySpec.hs +++ b/test/Servant/JQuerySpec.hs @@ -13,11 +13,12 @@ import Language.ECMAScript3.Parser (parseFromString) import Test.Hspec import Servant.API +import Servant.API.ContentTypes import Servant.JQuery import Servant.JQuerySpec.CustomHeaders -type TestAPI = "simple" :> ReqBody '[JSON] String :> Post '[JSON] Bool - :<|> "has.extension" :> Get '[JSON] Bool +type TestAPI = "simple" :> ReqBody '[JSON,FormUrlEncoded] String :> Post '[JSON] Bool + :<|> "has.extension" :> Get '[FormUrlEncoded,JSON] Bool type TopLevelRawAPI = "something" :> Get '[JSON] Int :<|> Raw