1
1
mirror of https://github.com/aelve/guide.git synced 2024-12-23 04:42:24 +03:00

Fix tests

This commit is contained in:
willbasky 2019-11-02 20:09:23 +05:00
parent e5c99eb43b
commit 3f53ff6479
2 changed files with 2 additions and 2 deletions

View File

@ -153,7 +153,7 @@ data ItemSite route = ItemSite
{ _getItem :: route :- { _getItem :: route :-
Summary "Get item by id" Summary "Get item by id"
:> ErrorResponse 404 "Item not found" :> ErrorResponse 404 "Item not found"
:> "ignore selections" :> "ignore_selections"
:> QueryParam' '[Required, Strict, :> QueryParam' '[Required, Strict,
Description "Ignore disabled sections to get full item"] Description "Ignore disabled sections to get full item"]
"bool" Bool "bool" Bool

View File

@ -81,7 +81,7 @@ tests = describe "api" $ do
it "get item by id" $ do it "get item by id" $ do
req <- withItem $ \(Uid itemId) -> do req <- withItem $ \(Uid itemId) -> do
request <- makeRequest request <- makeRequest
(Path $ "item/" <> toString itemId) (Path $ "ignore_selections/item/" <> toString itemId <> "?bool=false")
(Method "GET") (Method "GET")
(Status 200 "OK", _ :: CItemFull) <- runRequest request (Status 200 "OK", _ :: CItemFull) <- runRequest request
pure request pure request