hasProp matcher doesn't allow for object equality
Abierto
- Lenguaje dominante
- JavaScript
- Estrellas
- 18
- Forks
- 8
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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
```
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.