1
1
mirror of https://github.com/aelve/guide.git synced 2024-12-22 20:31:31 +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 :-
Summary "Get item by id"
:> ErrorResponse 404 "Item not found"
:> "ignore selections"
:> "ignore_selections"
:> QueryParam' '[Required, Strict,
Description "Ignore disabled sections to get full item"]
"bool" Bool

View File

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