UNPKG

compare-geojson

Version:

Compare a features new and old versions in GeoJSON

26 lines (25 loc) 744 B
{ "compareFunction": "common_tag_values", "fixtures": [ { "description": "Feature with no new version and old version", "newVersion": {}, "oldVersion": {}, "expectedResult": {} }, { "description": "Feature with valid highway tag", "newVersion": {"properties": {"highway" : "primary"}}, "oldVersion": {}, "expectedResult": { "result:commonTagValues": true } }, { "description": "Feature with invalid highway tag", "newVersion": {"properties": {"highway" : "random"}}, "oldVersion": {}, "expectedResult": {} } ] }