mjackson/expect

Make `toNotThrow` say what was thrown

Aperta

#193 aperta il 3 feb 2017

 (4 commenti) (0 reazioni) (0 assegnatari)JavaScript (115 fork)batch import
enhancementhelp wanted

Metriche repository

Star
 (2269 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

expect(() => foo()).toNotThrow

fails when foo throws, but it doesn't tell me what error foo threw. This would be really useful for debugging. I'm happy to make a PR :)

PS: I'm also happy to try to help out more if you need help with this module :)

Guida contributor