chai icon indicating copy to clipboard operation
chai copied to clipboard

[Feature Request]: ability to use .and.have.property('foo').expected.to.be(X) etc instead of "that.be", for the sake of English grammar

Open jedwards1211 opened this issue 4 years ago • 0 comments

Not a huge deal but it's awkward that we have to use incorrect English grammar in this case. Most significantly it's probably a bit confusing for first-timers.

Would be nice if we could use .expected.to in the same place as .that:

.and.have.property('foo').expected.to.be.true
.and.have.property('foo').expected.to.eventually.containSubset({ bar: 'baz' })

jedwards1211 avatar Apr 23 '20 05:04 jedwards1211