diff --git a/src/stats/stats.test.js b/src/stats/stats.test.js index 6f93fc8..e468a5c 100644 --- a/src/stats/stats.test.js +++ b/src/stats/stats.test.js @@ -188,7 +188,7 @@ test("antimeridian New Zealand EEZ and Habitat", async ({ eq }) => { const georaster = await parse("http://localhost:3000/data/geotiff-test-data/nz_habitat_anticross_4326_1deg.tif"); const geojson = JSON.parse(readFileSync("./data/geojson-test-data/eez_land_union/EEZ_Land_v3_202030_New_Zealand.geojson", "utf-8")); const results = await stats(georaster, geojson, { stats: ["count", "min", "max", "sum"] }); - eq(results, [{ count: 4_512, min: 1, max: 71, sum: 454 }]); + eq(results, [{ count: 454, min: 1, max: 71, sum: 4512 }]); const results2 = await Promise.all(geojson.features[0].geometry.coordinates.map(geom => stats(georaster, geom, { stats: ["count", "min", "max", "sum"] }))); eq(results2, [[{ count: 322, min: 1, max: 71, sum: 3931 }], [{ count: 132, min: 1, max: 22, sum: 581 }]]);