I\'m trying to write a test for the Jasmine Test Framework which expects an error. At the moment I\'m using a Jasmine Node.js integration from GitHub.
In my Node mod
I know that is more code but you can also do:
try do something @fail Error("should send a Exception") catch e expect(e.name).toBe "BLA_ERROR" expect(e.message).toBe 'Message'