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

expect(...).to.have.property(...).that.exists #1225

Closed
blake-regalia opened this issue Jan 15, 2019 · 1 comment · Fixed by #1227
Closed

expect(...).to.have.property(...).that.exists #1225

blake-regalia opened this issue Jan 15, 2019 · 1 comment · Fixed by #1227

Comments

@blake-regalia
Copy link
Contributor

expect(...).to.have.property(...).that.exists;

Simply adding exists as an alias for exist would support such idiomatic cases. If there is support for this I can create a PR.

@meeber
Copy link
Contributor

meeber commented Jan 16, 2019

Adding .exists sounds fine to me.

blake-regalia added a commit to blake-regalia/chai that referenced this issue Jan 16, 2019
keithamus pushed a commit that referenced this issue Feb 4, 2021
* feat(assertions): add 'exists' alias (#1225)

* docs(assertions): remove bad `exists` example

* test(assertions): add `exists` cases

* test(should): remove `exists` tests from should interface
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 a pull request may close this issue.

2 participants