Given this code:
var assert = require(\'assert\'); function boom(){ throw new Error(\'BOOM\'); } assert.throws( boom(), Error );
I ge
This is closely related to the issue people with with other assertion Mocha/Chai. See this answer for the description with node examples: Mocha / Chai expect.to.throw not catching thrown errors
node