An open API service indexing awesome lists of open source software.

https://github.com/capaj/assert-array-includes-matching-items

just a helpful assert which I was lacking in jest/chai/jasmine
https://github.com/capaj/assert-array-includes-matching-items

assert nodejs

Last synced: 3 months ago
JSON representation

just a helpful assert which I was lacking in jest/chai/jasmine

Awesome Lists containing this project

README

          

# assert-array-includes-matching-items

just a helpful assert with nice output which I was lacking in jest/chai/jasmine

```javascript
import assertArrayIncludesMatchingItems from 'assert-array-includes-matching-items'

assertArrayIncludesMatchingItems(someArray, arrayOfItemsToFind)
```

if the assertion fails, this is logged:

![output](output.png?raw=true 'When assertion fails')