@angular-package/testing
Version:
Jasmine unit testing wrapper with additional custom testing features.
1 lines • 309 B
JavaScript
import{Expect}from"../expect.class";export class TestingExpectToThrow extends Expect{error(t,e,r){return this.expect(t,r).toThrowError(e),this.setNot(!1),this}matching(t,e,r){return this.expect(t,r).toThrowMatching(e),this.setNot(!1),this}throw(t,e,r){return this.expect(t,r).toThrow(e),this.setNot(!1),this}}