h2non / gock

HTTP traffic mocking and testing made easy in Go ༼ʘ̚ل͜ʘ̚༽
https://pkg.go.dev/github.com/h2non/gock
MIT License
2.09k stars 107 forks source link

Update MatchBody() to check equality of JSON key + value pairs regardless of order. #16

Closed edwinthinks closed 7 years ago

edwinthinks commented 7 years ago

Regarding https://github.com/h2non/gock/issues/15

Update MatchBody() to compare if key + value pairs of JSON match regardless of order they are in.

Please let me know of any suggestions :)

h2non commented 7 years ago

Thank you!