isAtLeast, isAtMost assertions added to assert interface #500

Merged
merged 1 commit into from Jul 24, 2015

Projects

None yet

2 participants

@wraithan
Contributor

I noticed the assert interface was missing these methods. One can use the operator method but that feels clunky. The CONTRIBUTING.md says to not expand the interface without asking due to possible rejection. I'm 100% fine with this being rejected if the expansion of the interface is deemed not useful. I attempted to match style best I could but there is no linter so I'm not 100% positive I've hit every point.

Also, it'd be nice if the CONTRIBUTING.md was expanded to discuss whether one should include an updated chai.js or not. I assumed not since that appeared to be part of the release process but I wasn't sure.

I went with is* for these to match the rest of the assert, I'm happy to rename them to something else that y'all like. I started with most and least like the should/expect interfaces but decided matching the interface I was adding them to was more important than matching what the other interfaces call them.

I also opted to not add the aliases gte and lte as there didn't appear to be any other shorthand aliases in assert. Happy to add those as well if those are desired.

Thanks for ChaiJS

@keithamus
Member

Hey @wraithan thanks for the PR, good work 👍

@keithamus keithamus merged commit 7d36b5a into chaijs:master Jul 24, 2015

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
@marekventur marekventur referenced this pull request in Gamevy/pixi-packer Dec 14, 2015
Merged

Update "chai" to version ^3.4.1 #15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment