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
We currently have the expect(obj).to.have.property('key', 'value') expectation method, it would be nice to have ability to check for multiple properties at once.
Something like expect(obj).to.have.properties({key1: 'value1', key2: 'value2}), what do You think?
The text was updated successfully, but these errors were encountered:
You should check out #72 for a discussion we had about this. Basically, there is too much ambiguity in implementing this is core: is this key:value matching or deep equality testing. Also, given that property is expected to change the topic the current assertion this would cause confusion in further chaining .
Your welcome to implement as a plugin. I suggest reading the docs about overwriteMethod on the guide here.
We currently have the
expect(obj).to.have.property('key', 'value')
expectation method, it would be nice to have ability to check for multiple properties at once.Something like
expect(obj).to.have.properties({key1: 'value1', key2: 'value2})
, what do You think?The text was updated successfully, but these errors were encountered: