Using Mocha, I am attempting to test whether a constructor throws an error. I haven\'t been able to do this using the expect syntax, so I\'d like to do the following:
You can try using Chai's throw construct. For example:
throw
expect(Constructor).to.throw(Error);