UNPKG

compare-geojson

Version:

Compare a features new and old versions in GeoJSON

54 lines (53 loc) 1.11 kB
{ "compareFunction": "null-island", "fixtures": [ { "description": "A way in null island", "newVersion": { "type": "Feature", "properties": {}, "geometry": { "type": "LineString", "coordinates": [ [ -2.197265625, -2.3284603685731593 ], [ 2.8564453125, -2.218683588558448 ] ] } }, "oldVersion": null, "expectedResult": { "result:null_island": true } }, { "description": "A way that's not in null island", "newVersion": { "type": "Feature", "properties": {}, "geometry": { "type": "LineString", "coordinates": [ [ 37.880859375, 23.160563309048314 ], [ 48.251953125, 31.87755764334002 ] ] } }, "oldVersion": null, "expectedResult": { "result:null_island": false } } ] }