isAtLeast, isAtMost assertions added to assert interface #500
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I noticed the
assert
interface was missing these methods. One can use theoperator
method but that feels clunky. TheCONTRIBUTING.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 updatedchai.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 withmost
andleast
like theshould
/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
andlte
as there didn't appear to be any other shorthand aliases inassert
. Happy to add those as well if those are desired.Thanks for ChaiJS