yamadapc / jsdoctest

Run jsdoc examples as doctests.
https://yamadapc.github.io/jsdoctest
MIT License
92 stars 9 forks source link

Feature Request: Support for Thrown Errors #17

Open reggi opened 8 years ago

reggi commented 8 years ago

I'd love some way to add that an @example should throw an error. Something like:

someFunctionThatThrows()
// => Throws

or

someFunctionThatThrows()
// => Throws [Error]

or

someFunctionThatThrows()
// => Throws [Error: Some message]