UNPKG

compare-geojson

Version:

Compare a features new and old versions in GeoJSON

55 lines (54 loc) 1.16 kB
{ "compareFunction": "priority_area", "fixtures": [ { "description": "The White House is in a priority area", "expectedResult": { "result:priority_area": { "priority_area": true, "cfVersion": 1 } }, "newVersion": { "type": "Feature", "properties": { "tourism": "attraction", "name": "White House" }, "geometry": { "type": "Point", "coordinates": [ -77.036, 38.897 ] } }, "oldVersion": null }, { "description": "Bangalore is not in priority area", "expectedResult": { "result:priority_area": { "priority_area": false, "cfVersion": 1 } }, "newVersion": { "type": "Feature", "id": "node!3401391999!18", "properties": { "place": "city", "name": "Bangalore" }, "geometry": { "type": "Point", "coordinates": [ 77.5912997, 12.9791198 ] } }, "oldVersion": null } ] }