add geo (toBeGeoLatitude, toBeGeoLongitude) #538
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What
add geographic assertions (toBeGeoLatitude, toBeGeoLongitude)
Why
I've been using jest and jest-extended for long. Few months ago I needed to make geographic
assertions to a project I was working on but I didn't found anything already done so I wrote
some custom code in my project and later refactored and open sourced to a library
(https://www.npmjs.com/package/check-geographic-coordinates). Other developers finded it useful
and used it, some of them gave to me some feedbacks in how to improve it, but I was missing the
most important one, the jest assertion syntax integration. So I decided to look at jest-exteded
more in deep, not as the user I was, but as a developer and I made this PR. Looking backward
I think I would used it directly with jest-extended.
I hope you like it and that you find useful for other developers too.
I'm glad to receive any feedback from you. Thank you, Marco Verdecchia.
Notes
Assertions based on https://www.npmjs.com/package/check-geographic-coordinates
Housekeeping