UNPKG

compare-geojson

Version:

Compare a features new and old versions in GeoJSON

76 lines (75 loc) 2.48 kB
{ "compareFunction": "user_blocks", "fixtures": [ { "description": "Test feature edit by a blocked mapper", "expectedResult": { "result:user_blocks": { "blocks": true, "cfVersion": 1 } }, "newVersion": { "type": "Feature", "id": "node!4186092439!1", "properties": { "osm:type": "node", "osm:id": 4186092439, "osm:version": 1, "osm:changeset": 39321130, "osm:timestamp": 1463262389000, "osm:uid": 3876237, "osm:user": "Eugene13" }, "geometry": { "type": "Point", "coordinates": [ -1.0474894, 53.9472933 ] } }, "oldVersion": null }, { "description": "Test feature edit by a not blocked mapper", "expectedResult": { "result:user_blocks": { "cfVersion": 1, "blocks": 0 } }, "newVersion": { "type": "Feature", "id": "node!2068274800!13", "properties": { "name": "Mysuru", "name:en": "Mysuru", "name:ja": "マイソール", "name:kn": "ಮೈಸೂರು", "name:kn:iso15919": "Maisūru", "old_name": "Mysuru", "place": "city", "population": "887446", "postal_code": "570001", "wikipedia": "en:Mysore", "osm:type": "node", "osm:id": 2068274800, "osm:version": 13, "osm:changeset": 38466012, "osm:timestamp": 1460352401000, "osm:uid": 2115749, "osm:user": "srividya_c" }, "geometry": { "type": "Point", "coordinates": [ 76.6553609, 12.3051828 ] } }, "oldVersion": null } ] }