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
Mar 1, 2017 2 angular fix karma test Fix Angular 2 Tests with Karma Below are some fixes I had to apply in order to make Angular 2 tests work with karma. Binding * Error: Can't bind to