d3 / d3-geo

Geographic projections, spherical shapes and spherical trigonometry.

Home Page:https://d3js.org/d3-geo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fit-test.js Remove duplicate test

martinfrances107 opened this issue · comments

This is a really minor issue...

I can see that a test is duplicated

first instance at line line 19, then repeated a line 61

I will generate a PR which removes the version at line 61

it("projection.fitExtent(…) world equirectangular", () => {
  const projection = geoEquirectangular();
  projection.fitExtent([[50, 50], [950, 950]], world);
  assertInDelta(projection.scale(), 143.239449, 1e-6);
  assertInDelta(projection.translate(), [500, 492.000762], 1e-6);
});

closed by #258.