@angular-package/testing
Version:
Jasmine unit testing wrapper with additional custom testing features.
1 lines • 760 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{TestingItTo}from"../it";export class TestingTo extends TestingCore{to;constructor(t=!0,e=!0,i,s=[!0,!1],o=new TestingDescribe(t,i?.describe,s),r=new TestingIt(e,i?.it,s),n=new TestingExpectation){super(t,e,i,s,o,r,n),this.to=new TestingItTo(t,e,i,s,o,r,n)}toBe(t,e,i,s,o){return this.to.be.be(t,e,i,s,o),this}toContain(t,e,i,s,o){return this.to.contain(t,e,i,s,o),this}toEqual(t,e,i,s,o){return this.to.equal(t,e,i,s,o),this}toMatch(t,e,i,s,o){return this.to.match(t,e,i,s,o),this}toThrow(t,e,i,s,o){return this.to.throw.throw(t,e,i,s,o),this}}