You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a well known issue, and has been discussed a few times. If you want the history you can see #41, #297, #302, #306, #321, #326 and probably some others I've missed.
For ways we're actually planning to solve this problem, please have a look at our Roadmap in #457, and more specifically #407 - where we discuss adding proxies which would let us throw errors on undefined properties.
If you need a fix right now, then you have two options:
Don't use the property getters, instead use method alternatives, e.g. expect(true).to.equal(false);
Use dirty-chai which rewrites all of those property assertions to method assertions, so expect(true).to.be.false becomes expect(true).to.be.false().
We'd love to get some help on making #407 a reality, so if you'd like to continue the discussion there, or perhaps make a pull request, that'd be awesome 😄
I'm closing this, given that it's a duplicate of all of the above mentioned issues.
The text was updated successfully, but these errors were encountered: