Skip to content

Commit

Permalink
remove calcStreetWidth test for streetmix-utils.js
Browse files Browse the repository at this point in the history
delete old test for calcStreetWidth
  • Loading branch information
Algorush committed Feb 28, 2024
1 parent 19eff85 commit 4ba11d0
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions test/streetmix-utils-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,4 @@ describe('StreetmixUtils', function () {
'https://streetmix.net/-/3');
});
});

describe('#calcStreetWidth()', function () {
// TODO: Use Chai assertion library `closeTo(73.7616,0.0001) instead of testing for a number with floating point precision error 73.76160000000003
// see https://stackoverflow.com/questions/32770330/
it('should return 73.76160000000003 with Street 44', function () {
const streetmixObject = JSON.parse(sampleInput);
assert.strictEqual(
streetmixUtils.calcStreetWidth(streetmixObject.data.street.segments),
73.76160000000003);
});
});
});

0 comments on commit 4ba11d0

Please sign in to comment.