You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Repeat Passing/Failing Tests Contained in Other Files
This matcher works with any geometry, Feature, or FeatureCollection. Therefore, the passing and failing tests for each of the nine can also include tests for toBeValidGeoJSON.
Removed from v1.0.0 milestone because all functionality contained within is already in other component functions. This will come as one of the next release matchers.
Description
This is the most generic matcher, and expected to be one of the most commonly used ones.
This matcher takes as an argument of any GeoJSON object and checks if it meets validity requirements for any of the nine types:
It does not accept individual components of these objects.
See the above links for examples.
Example Matcher Usage
Repeat Passing/Failing Tests Contained in Other Files
This matcher works with any geometry, Feature, or FeatureCollection. Therefore, the passing and failing tests for each of the nine can also include tests for
toBeValidGeoJSON
.Unique Tests
Input Not an Object
-
undefined
-
null
-Booleans:
true
,false
-Numbers:
200
,-200
,Infinity
,-Infinity
,NaN
-Arrays:
[25, 35, 45000]
,[[0, 0], [1, 1]]
,[ ]
-Strings:
''
,'Random Geometry'
,'[0, 0]', '[[0, 0], [0, 0]]'
Non-Object GeoJSON Components
Other
The text was updated successfully, but these errors were encountered: