allain / expect

helpers for writing jest like expect tests in deno
ISC License
45 stars 14 forks source link

.toContain doesn't support strings #12

Closed oscarotero closed 3 years ago

oscarotero commented 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.

allain commented 3 years ago

Thanks for spotting it. On it.

allain commented 3 years ago

Done. Tagged as v0.2.9. Sorry it took so long, I hadn't seen this message amongst the horde of dependabot messages.