Closed oscarotero closed 3 years ago
According with the docs: https://jestjs.io/docs/en/expect#tocontainitem
.toContain can also check whether a string is a substring of another string.
This implementation only checks arrays, and throw an error on passing a string.
Thanks for spotting it. On it.
Done. Tagged as v0.2.9. Sorry it took so long, I hadn't seen this message amongst the horde of dependabot messages.
According with the docs: https://jestjs.io/docs/en/expect#tocontainitem
This implementation only checks arrays, and throw an error on passing a string.