chai
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
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' })