-
-
Notifications
You must be signed in to change notification settings - Fork 697
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
Breaking: Change .not.property(name, val)
behavior
#744
Conversation
- Previously, `expect(obj).not.property(name, val)` would throw an Error if `obj` didn't have a property named `name`. This change causes the assertion to pass instead. - assert.propertyNotVal renamed to assert.notPropertyVal - assert.deepPropertyNotVal renamed to assert.notDeepPropertyVal
This LGTM 👍 |
@lucasfcosta thoughts? |
LGTM too, but read this first. |
@lucasfcosta My thought is that if everything looks good we can merge these in right before starting the 4.x.x-to-master merge. |
@lucasfcosta why would releasing a breaking canary version be a problem? |
@keithamus I thought our goal with that would be just to release non-breaking versions, but including latest features and fixes, so anyone could using the However, I'm not too strict about it, if guys prefer this way I don't see any problem due to the fact that anyone using the |
@lucasfcosta My assumption is that |
I'm in favor of doing things in this order:
|
Thank you for sharing you ideas guys, it's great to have such a great team to discuss these kinds of things 😄 Let's get this merged! 😄 I'll get back to reviewing the other PRs then. |
expect(obj).not.property(name, val)
would throw an Errorif
obj
didn't have a property namedname
. This change causes theassertion to pass instead.
Notes:
.include
internally leverages.property
when performing property assertions while providing a consistent, intuitive experience.