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
Until I discovered that ko didn't exist, so I changed my assertions to this :
expect(assertion).not.to.be.ok;
My issue here is that my ko assertion didn't make my test fail and I believed up until now that I was actually checking for a falsey value. Granted, I assumed that koexisted without looking at the documentation and should have not.
Any opinion on this ?
The text was updated successfully, but these errors were encountered:
We've discussed this quite a bit, most recently in #549. I'll quote the relevant information from that isssue:
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().
Hello,
I've been using assertions of this type :
expect(assertion).to.be.ko;
Until I discovered that
ko
didn't exist, so I changed my assertions to this :expect(assertion).not.to.be.ok;
My issue here is that my
ko
assertion didn't make my test fail and I believed up until now that I was actually checking for a falsey value. Granted, I assumed thatko
existed without looking at the documentation and should have not.Any opinion on this ?
The text was updated successfully, but these errors were encountered: