Skip to content

Commit

Permalink
rounded reprojection coordinates tests
Browse files Browse the repository at this point in the history
  • Loading branch information
offtherailz committed Dec 2, 2016
1 parent 346275d commit fd2b466
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions web/client/utils/__tests__/CoordinatesUtils-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ describe('CoordinatesUtils', () => {
expect(reprojectedTestPoint.features[0]).toExist();
expect(reprojectedTestPoint.features[0].type).toBe("Feature");
expect(reprojectedTestPoint.features[0].geometry.type).toBe("Point");
expect(reprojectedTestPoint.features[0].geometry.coordinates[0]).toBe(-12523490.492568726);
expect(reprojectedTestPoint.features[0].geometry.coordinates[1]).toBe(5195238.005360028);
// approximate values should be the same
expect(reprojectedTestPoint.features[0].geometry.coordinates[0].toFixed(4)).toBe((-12523490.492568726).toFixed(4));
expect(reprojectedTestPoint.features[0].geometry.coordinates[1].toFixed(4)).toBe((5195238.005360028).toFixed(4));
});
});

0 comments on commit fd2b466

Please sign in to comment.