Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Users are unable to create mocks with specific body where the order of keys does not matter #268

Closed
klippx opened this issue Jan 19, 2022 · 1 comment · Fixed by #270
Closed

Comments

@klippx
Copy link
Collaborator

klippx commented Jan 19, 2022

A spec reproducing the issue:

This issue forces clients to debug their mocks which are not very human parsable #269:

"[Mappersmith Test] No exact match found for \"POST http://example.org/blogs\" (body: \"{\"title\":\"title\",\"data\":{\"nestedItemTwo\":2,\"nestedItemOne\":1,\"nestingLevelTwo\":{\"deepNestedItemTwo\":2,\"deepNestedItemOne\":1}}}\"; headers: \"\"), partial match with \"POST http://example.org/blogs\" (body: \"{\"title\":\"title\",\"data\":{\"nestedItemOne\":1,\"nestedItemTwo\":2,\"nestingLevelTwo\":{\"deepNestedItemOne\":1,\"deepNestedItemTwo\":2}}}\"; headers: \"\"), check your mock definition"

@klippx
Copy link
Collaborator Author

klippx commented Jan 20, 2022

A shallow fix was implemented in #121

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant