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
consttruths=[true,true,true];expect(truths).to.all.be.true;// ERROR: expected true to be true
Workaround:
expect(truths.includes(!true)).to.be.true;
If I can find the time on my hands to get a PR rolling for this, I'd be more than happy to. If for whatever reason I can't, I'd ❤️ whomever does find the time and energy to do so!
The text was updated successfully, but these errors were encountered:
@kasperlewau Thanks for the issue. I took a glance at the code earlier and I believe the problem is that the all and something functionality is only added to Chai's regular assertion methods, not its chainable assertion methods, which includes an. If this is indeed the case, then this issue is actually responsible for #14, #16, and #25.
I have two use cases that will not pass with the following versions:
chai@^3.5.0
,chai-things@^0.2.0
andmocha@^2.4.5
.Expect all array items to be of type
boolean
.Possible duplicate of #16
Workaround:
Expect all array items to be
true
(or,false
).Workaround:
If I can find the time on my hands to get a PR rolling for this, I'd be more than happy to. If for whatever reason I can't, I'd ❤️ whomever does find the time and energy to do so!
The text was updated successfully, but these errors were encountered: