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

fix(matchers): Allow integers/decimals to be 0 #236

Merged
merged 1 commit into from
Oct 27, 2018

Conversation

geemanjs
Copy link
Contributor

Due to how javascript deals with 0 in if statements passing 0 into integer()/decimal() results in
the default value 13. This change corrects that by doing a nil check instead

Due to how javascript deals with 0 in if statements passing 0 into `integer()/decimal()` results in
the default value 13. This change corrects that by doing a nil check instead
@coveralls
Copy link

Coverage Status

Coverage remained the same at 94.896% when pulling 5854fb6 on Geeman201:master into e375894 on pact-foundation:master.

Copy link
Member

@mefellows mefellows left a comment

Choose a reason for hiding this comment

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

Good call, thanks!

@mefellows mefellows merged commit c40ce32 into pact-foundation:master Oct 27, 2018
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.

3 participants