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...
as discussed in https://github.com/smeijer/leaflet-geosearch/issues/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 https://github.com/smeijer/leaflet-geosearch/issues/297