JanGorman / Hippolyte

HTTP Stubbing in Swift
MIT License
111 stars 18 forks source link

Do not guard data before sending to bodyMatcher #61

Closed onevcat closed 3 years ago

onevcat commented 3 years ago

guard let body = body in matchesBody prevents us from verifying the case a nil body is sent, but the request desires some data in the HTTP body.

As described in the test too.

JanGorman commented 3 years ago

Thanks for the contribution! That makes sense – thanks for also adding a test! 🎉