JSDoc
Test if a callback throws an exception, and optionally compare the thrown
error.
When testing code that is expected to throw an exception based on a
specific set of circumstances, use assert.throws() to catch the error
object for testing and comparison.
In very few environments, like Closure Compiler, throws is considered a
reserved word and will cause an error. For that case, an alias is bundled
called `raises`. It has the same signature and behaviour, just a
different name.