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

test: custom jest assertion for coordinate/bounds validation #303

Merged
merged 1 commit into from
Oct 12, 2021

Conversation

missinglink
Copy link
Collaborator

@missinglink missinglink commented Oct 12, 2021

as discussed in #297 this PR makes the bounds assertions more consistent.

I ended up writing it in a custom jest assertion called .toBeValidBounds() (there's also . toBeValidCoordinate() which is used internally but also exposed).

The issue we discussed about the antimeridian etc. is a bit out-of-scope, I had a look around for a module which would validate it and couldn't find anything, I may end up writing one myself at some point...

resolves #297

@smeijer
Copy link
Owner

smeijer commented Oct 12, 2021

Looking great! Thanks.

@smeijer smeijer merged commit f14dc0d into develop Oct 12, 2021
@smeijer smeijer deleted the bbox-validate branch October 12, 2021 10:42
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 this pull request may close these issues.

unusual bounds checks in provider tests
2 participants