tests: fix incomplete pattern warnings (GHC 9.2)
This commit is contained in:
@@ -498,7 +498,7 @@ spec actualPgVersion = do
|
|||||||
[json|[ { "k":"圍棋", "extra":"¥" } ]|]
|
[json|[ { "k":"圍棋", "extra":"¥" } ]|]
|
||||||
{ matchStatus = 201 }
|
{ matchStatus = 201 }
|
||||||
|
|
||||||
let Just location = lookup hLocation $ simpleHeaders p
|
Just location <- pure $ lookup hLocation $ simpleHeaders p
|
||||||
get location
|
get location
|
||||||
`shouldRespondWith`
|
`shouldRespondWith`
|
||||||
[json|[ { "k":"圍棋", "extra":"¥" } ]|]
|
[json|[ { "k":"圍棋", "extra":"¥" } ]|]
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ validateOpenApiResponse headers = do
|
|||||||
let respHeaders = simpleHeaders r in
|
let respHeaders = simpleHeaders r in
|
||||||
respHeaders `shouldSatisfy`
|
respHeaders `shouldSatisfy`
|
||||||
\hs -> ("Content-Type", "application/openapi+json; charset=utf-8") `elem` hs
|
\hs -> ("Content-Type", "application/openapi+json; charset=utf-8") `elem` hs
|
||||||
let Just body = decode (simpleBody r)
|
Just body <- pure $ decode (simpleBody r)
|
||||||
Just schema <- liftIO $ decode <$> BL.readFile "test/spec/fixtures/openapi.json"
|
Just schema <- liftIO $ decode <$> BL.readFile "test/spec/fixtures/openapi.json"
|
||||||
let args :: M.Map Text Value
|
let args :: M.Map Text Value
|
||||||
args = M.fromList
|
args = M.fromList
|
||||||
|
|||||||
Reference in New Issue
Block a user