UNPKG

@angular-package/testing

Version:

Jasmine unit testing wrapper with additional custom testing features.

1 lines 2.24 kB
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{TestingItToBe}from"../it";export class TestingToBe extends TestingCore{toBe;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.toBe=new TestingItToBe(t,e,i,s,o,r,n)}toBeArray(t,e,i,s,o){return this.toBe.array(t,e,i,s,o),this}toBeBigInt(t,e,i,s,o){return this.toBe.bigInt(t,e,i,s,o),this}toBeClass(t,e,i,s,o){return this.toBe.class(t,e,i,s,o),this}toBeCloseTo(t,e,i,s,o,r){return this.toBe.closeTo(t,e,i,s,o,r),this}toBeDate(t,e,i,s,o){return this.toBe.date(t,e,i,s,o),this}toBeDefined(t,e,i,s,o){return this.toBe.defined(t,e,i,s,o),this}toBeFalse(t,e,i,s,o){return this.toBe.false(t,e,i,s,o),this}toBeFalsy(t,e,i,s,o){return this.toBe.falsy(t,e,i,s,o),this}toBeFunction(t,e,i,s,o){return this.toBe.function(t,e,i,s,o),this}toBeInstance(t,e,i,s,o,r){return this.toBe.instance(t,e,i,s,o,r),this}toBeInstanceOf(t,e,i,s,o){return this.toBe.instanceOf(t,e,i,s,o),this}toBeKey(t,e,i,s,o){return this.toBe.key(t,e,i,s,o),this}toBeNaN(t,e,i,s,o){return this.toBe.naN(t,e,i,s,o),this}toBeNegativeInfinity(t,e,i,s,o){return this.toBe.negativeInfinity(t,e,i,s,o),this}toBeNull(t,e,i,s,o){return this.toBe.null(t,e,i,s,o),this}toBePending(t,e,i,s){return this.toBe.pending(t,e,i,s),this}toBePositiveInfinity(t,e,i,s,o){return this.toBe.positiveInfinity(t,e,i,s,o),this}toBeRegExp(t,e,i,s,o){return this.toBe.regExp(t,e,i,s,o),this}toBeRejected(t,e,i,s){return this.toBe.rejected(t,e,i,s),this}toBeRejectedWith(t,e,i,s,o){return this.toBe.rejectedWith(t,e,i,s,o),this}toBeRejectedWithError(t,e,i,s,o,r){return this.toBe.rejectedWithError(t,e,i,s,o,r),this}toBeResolved(t,e,i,s){return this.toBe.resolved(t,e,i,s),this}toBeResolvedTo(t,e,i,s,o){return this.toBe.resolvedTo(t,e,i,s,o),this}toBeSymbol(t,e,i,s,o){return this.toBe.symbol(t,e,i,s,o),this}toBeTrue(t,e,i,s,o){return this.toBe.true(t,e,i,s,o),this}toBeTruthy(t,e,i,s,o){return this.toBe.truthy(t,e,i,s,o),this}toBeUndefined(t,e,i,s,o){return this.toBe.undefined(t,e,i,s,o),this}}