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

.to.have.ownProperty(key, value) should work like .property() #646

Closed
ljharb opened this issue Mar 23, 2016 · 2 comments
Closed

.to.have.ownProperty(key, value) should work like .property() #646

ljharb opened this issue Mar 23, 2016 · 2 comments

Comments

@ljharb
Copy link
Contributor

ljharb commented Mar 23, 2016

expect({ a: 1 }).to.have.ownProperty('a', 2); passes. expect({ a: 1 }).to.have.property('a', 2); fails.

It would be great to have the APIs be similar.

@lucasfcosta
Copy link
Member

Hello @ljharb, thanks for the issue! 😄

This has already been done at #641 (but it has not been released yet) and you can see the whole discussion about this at #281.
Please let me know if you have further doubts.

@ljharb
Copy link
Contributor Author

ljharb commented Mar 23, 2016

Yay, thanks! When might a release be cut?

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

No branches or pull requests

2 participants