Fix tests for explicit errors in aeson-1.4.7, and raise lower bound

This commit is contained in:
Robert Vollmert
2020-04-16 17:47:52 -05:00
committed by Steve Chavez
parent b609d8491e
commit 5838214910
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -204,7 +204,7 @@ spec actualPgVersion = do
it "fails with 400 and error" $
post "/simple_pk" "}{ x = 2"
`shouldRespondWith`
[json|{"message":"Error in $: Failed reading: not a valid json value"}|]
[json|{"message":"Error in $: Failed reading: not a valid json value at '}{x=2'"}|]
{ matchStatus = 400
, matchHeaders = [matchContentTypeJson]
}
@@ -425,7 +425,7 @@ spec actualPgVersion = do
it "fails with 400 and error" $
request methodPatch "/simple_pk" [] "}{ x = 2"
`shouldRespondWith`
[json|{"message":"Error in $: Failed reading: not a valid json value"}|]
[json|{"message":"Error in $: Failed reading: not a valid json value at '}{x=2'"}|]
{ matchStatus = 400,
matchHeaders = [matchContentTypeJson]
}