hasProp matcher doesn't allow for object equality
Open
- Dominant language
- JavaScript
- Stars
- 18
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
Given the following Subject, using the hasProp matcher will return false when providing an equivalent object. This is because the matcher looks for strict equality over object equality.
```javascript
drill(Subject)
.find(MyComponent, m.hasProp('prop', { foo: 'bar' })) // => false
{ foo: 'bar' } === { foo: 'bar' } // => false
_.isEqual({ foo: 'bar' }, { foo: 'bar' }) // => true
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.