@angular-package/testing
Version:
Jasmine unit testing wrapper with additional custom testing features.
1 lines • 636 B
JavaScript
import{TestingCore}from"../testing-core.abstract";import{TestingDescribe}from"../testing-describe.class";import{TestingExpectation}from"../testing-expectation.class";import{TestingIt}from"../testing-it.class";import{TestingItToThrow}from"../it";export class TestingToThrow extends TestingCore{toThrow;constructor(t=!0,e=!0,r,o=[!0,!1],i=new TestingDescribe(t,r?.describe,o),s=new TestingIt(e,r?.it,o),n=new TestingExpectation){super(t,e,r,o,i,s,n),this.toThrow=new TestingItToThrow(t,e,r,o,i,s,n)}toThrowError(t,e,r,o,i){return this.toThrow.error(t,e,r,o,i),this}toThrowMatching(t,e,r,o,i){return this.toThrow.matching(t,e,r,o,i),this}}