mirror of
https://github.com/aelve/guide.git
synced 2024-12-23 04:42:24 +03:00
Fix tests
This commit is contained in:
parent
e5c99eb43b
commit
3f53ff6479
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user