How to write a test which expects an Error to be thrown in Jasmine? How to write a test which expects an Error to be thrown in Jasmine? javascript javascript