Skip to content

Commit

Permalink
removed frequency from stats tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielJDufour committed May 17, 2024
1 parent 25f5fdb commit c8475fb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/stats/stats.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,17 @@ test("(Sync) Stats without Geometry", async ({ eq }) => {
const georaster = await load(url);
const results = stats(georaster, undefined);
results.forEach(band => {
delete band.uniques;
delete band.frequency;
delete band.histogram;
delete band.uniques;
});
eq(results, EXPECTED_RASTER_STATS);
});

test("(Async) Stats without Geometry", async ({ eq }) => {
const results = await stats(url, undefined);
results.forEach(band => {
delete band.frequency;
delete band.histogram;
delete band.uniques;
});
Expand All @@ -98,6 +100,7 @@ test("(Sync) Stats with Bounding Box", async ({ eq }) => {
const georaster = await load(url);
const results = stats(georaster, bbox);
results.forEach(band => {
delete band.frequency;
delete band.histogram;
delete band.uniques;
});
Expand All @@ -107,6 +110,7 @@ test("(Sync) Stats with Bounding Box", async ({ eq }) => {
test("(Async) Stats with Bounding Box", async ({ eq }) => {
const results = await stats(url, bbox);
results.forEach(band => {
delete band.frequency;
delete band.histogram;
delete band.uniques;
});
Expand All @@ -117,6 +121,7 @@ test("(Sync) Stats with Polygon", async ({ eq }) => {
const georaster = await load(url);
const results = stats(georaster, polygon);
results.forEach(band => {
delete band.frequency;
delete band.histogram;
delete band.uniques;
});
Expand All @@ -126,6 +131,7 @@ test("(Sync) Stats with Polygon", async ({ eq }) => {
test("(Async) Stats with Polygon", async ({ eq }) => {
const results = await stats(url, polygon);
results.forEach(band => {
delete band.frequency;
delete band.histogram;
delete band.uniques;
});
Expand Down

0 comments on commit c8475fb

Please sign in to comment.