[test] shouldRespondWithFrament with 200 status

parent f5b6b8c6
Pipeline #5580 failed with stages
in 20 minutes and 26 seconds
......@@ -37,9 +37,8 @@ shouldRespondWithFragment :: HasCallStack
=> WaiSession st SResponse
-> JsonFragmentResponseMatcher
-> WaiExpectation st
shouldRespondWithFragment action matcher = do
r <- action
forM_ (match r (getJsonMatcher matcher)) (liftIO . expectationFailure)
shouldRespondWithFragment action matcher =
shouldRespondWithFragmentCustomStatus 200 action matcher
-- | Same as above, but with custom status code
shouldRespondWithFragmentCustomStatus :: HasCallStack
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment