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
I know about expect(o).to.have.property('baz').that.is.a('function'), but it can be a little bit more painful to deal with when the object has more keys.
The text was updated successfully, but these errors were encountered:
@EtienneLem thanks for the issue! We discussed matchers a long while ago, over in #97 - but the discussion hasn't moved on much since then. It'd be a big feature to add in Chai, but we could potentially make it very powerful.
Personally I'd like to see some kind of syntax that ties into assertions, like:
Is there any way to deeply expect an anonymous function? i.e. Jasmine has
jasmine.any(Function)
I know about
expect(o).to.have.property('baz').that.is.a('function')
, but it can be a little bit more painful to deal with when the object has more keys.The text was updated successfully, but these errors were encountered: