UNPKG

@angular-package/testing

Version:

Jasmine unit testing wrapper with additional custom testing features.

1 lines 2.13 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{TestingItToBeInstanceOf}from"../it";export class TestingToBeInstanceOf extends TestingCore{toBeInstanceOf;constructor(t=!0,e=!0,n,s=[!0,!1],r=new TestingDescribe(t,n?.describe,s),o=new TestingIt(e,n?.it,s),i=new TestingExpectation){super(t,e,n,s,r,o,i),this.toBeInstanceOf=new TestingItToBeInstanceOf(t,e,n,s,r,o,i)}toBeInstanceOfArray(t,e,n,s,r){return this.toBeInstanceOf.array(t,e,n,s,r),this}toBeInstanceOfBoolean(t,e,n,s,r){return this.toBeInstanceOf.boolean(t,e,n,s,r),this}toBeInstanceOfDate(t,e,n,s,r){return this.toBeInstanceOf.date(t,e,n,s,r),this}toBeInstanceOfError(t,e,n,s,r){return this.toBeInstanceOf.error(t,e,n,s,r),this}toBeInstanceOfFunction(t,e,n,s,r){return this.toBeInstanceOf.function(t,e,n,s,r),this}toBeInstanceOfMap(t,e,n,s,r){return this.toBeInstanceOf.map(t,e,n,s,r),this}toBeInstanceOfNumber(t,e,n,s,r){return this.toBeInstanceOf.number(t,e,n,s,r),this}toBeInstanceOfObject(t,e,n,s,r){return this.toBeInstanceOf.object(t,e,n,s,r),this}toBeInstanceOfPromise(t,e,n,s,r){return this.toBeInstanceOf.promise(t,e,n,s,r),this}toBeInstanceOfRangeError(t,e,n,s,r){return this.toBeInstanceOf.rangeError(t,e,n,s,r),this}toBeInstanceOfReferenceError(t,e,n,s,r){return this.toBeInstanceOf.referenceError(t,e,n,s,r),this}toBeInstanceOfRegExp(t,e,n,s,r){return this.toBeInstanceOf.regExp(t,e,n,s,r),this}toBeInstanceOfSet(t,e,n,s,r){return this.toBeInstanceOf.set(t,e,n,s,r),this}toBeInstanceOfStorage(t,e,n,s,r){return this.toBeInstanceOf.storage(t,e,n,s,r),this}toBeInstanceOfString(t,e,n,s,r){return this.toBeInstanceOf.string(t,e,n,s,r),this}toBeInstanceOfSyntaxError(t,e,n,s,r){return this.toBeInstanceOf.syntaxError(t,e,n,s,r),this}toBeInstanceOfTypeError(t,e,n,s,r){return this.toBeInstanceOf.typeError(t,e,n,s,r),this}toBeInstanceOfURIError(t,e,n,s,r){return this.toBeInstanceOf.URIError(t,e,n,s,r),this}toBeInstanceOfWeakSet(t,e,n,s,r){return this.toBeInstanceOf.weakSet(t,e,n,s,r),this}}