Skip to content
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

Add support for negative durations and proper tests #1

Merged
merged 2 commits into from
Feb 23, 2018

Conversation

corlaez
Copy link
Contributor

@corlaez corlaez commented Jan 4, 2018

Current behavior for negatives is broken. This PR solves the issue.
formatDuration( -65000)//should be "-1:05" vs current "-1:-05"

By the way, testing for negatives add the string 'check ' when the description starts with a negative number so the test runner can display the sign properly (otherwise it hide it away). And I added the check word to the existing testing for consistency.

@ungoldman ungoldman self-assigned this Feb 23, 2018
Copy link
Owner

@ungoldman ungoldman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the PR! Sorry it took a while for me to review.

@ungoldman ungoldman merged commit 415af0a into ungoldman:master Feb 23, 2018
@ungoldman
Copy link
Owner

Released in v1.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants