Mar 2, 2017 jasmine karma test throw tothrow tothrowerror typescript Use "toThrowError" and "toThrow" in TypeScript with Objects TL;DR: wrap your method call in the expect() statement. Instead of expect(obj.method()).toThrow(), write expect( () => { obj.method() }).toThrow(). While in the