UNPKG

@angular-package/testing

Version:

Jasmine unit testing wrapper with additional custom testing features.

1 lines 514 B
import{TestingCore}from"../testing-core.abstract";import{TextualExpectation}from"../textual-expectation.abstract";export class TestingItToThrow extends TestingCore{error(t,r,e=TextualExpectation.toThrowError,o,i){return this.it(e,(()=>super.expect.to.throw.error(t,r,o)),i),this}matching(t,r,e=TextualExpectation.toThrowMatching,o,i){return this.it(e,(()=>super.expect.to.throw.matching(t,r,o)),i),this}throw(t,r,e=TextualExpectation.toThrow,o,i){return this.it(e,(()=>super.expect.to.throw.throw(t,r,o)),i),this}}