-
Notifications
You must be signed in to change notification settings - Fork 943
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resolved conversion bugs and updated tests #2046
Conversation
@@ -519,10 +519,13 @@ test("round", (t) => { | |||
|
|||
test("convertLength", (t) => { | |||
t.equal(convertLength(1000, "meters"), 1); | |||
t.equal(convertLength(1000, "meters", "kilometers"), 1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added this one just for completeness
@ALL This is a very easy PR to review. I don't have a ticket filed for the original conversion bug - I can open one for it if you like. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Please fill in this template.
npm test
at the sub modules where changes have occurred.npm run lint
to ensure code style at the turf module level.This resolves the Meter/Yard and Yard/Meter conversion ratios and also updates the tests to validate the conversions work appropriately.