@angular-package/testing
Version:
Jasmine unit testing wrapper with additional custom testing features.
1 lines • 2.84 kB
JavaScript
import{TestingCore}from"../testing-core.abstract";import{TextualExpectation}from"../textual-expectation.abstract";export class TestingItToBeInstanceOf extends TestingCore{array(t,e=!0,r=TextualExpectation.toBeArray,n,o){return this.it(r,(()=>super.expect.to.be.instanceof.array(t,e,n)),o),this}boolean(t,e=!0,r=TextualExpectation.toBeInstanceOfBoolean,n,o){return this.it(r,(()=>super.expect.to.be.instanceof.boolean(t,e,n)),o),this}date(t,e=!0,r=TextualExpectation.toBeInstanceOfDate,n,o){return this.it(r,(()=>super.expect.to.be.instanceof.date(t,e,n)),o),this}error(t,e=!0,r=TextualExpectation.toBeInstanceOfError,n,o){return this.it(r,(()=>super.expect.to.be.instanceof.error(t,e,n)),o),this}function(t,e=!0,r=TextualExpectation.toBeInstanceOfFunction,n,o){return this.it(r,(()=>super.expect.to.be.instanceof.function(t,e,n)),o),this}map(t,e=!0,r=TextualExpectation.toBeInstanceOfMap,n,o){return this.it(r,(()=>super.expect.to.be.instanceof.map(t,e,n)),o),this}number(t,e=!0,r=TextualExpectation.toBeInstanceOfNumber,n,o){return this.it(r,(()=>super.expect.to.be.instanceof.number(t,e,n)),o),this}object(t,e=!0,r=TextualExpectation.toBeInstanceOfObject,n,o){return this.it(r,(()=>super.expect.to.be.instanceof.object(t,e,n)),o),this}promise(t,e=!0,r=TextualExpectation.toBeInstanceOfPromise,n,o){return this.it(r,(()=>super.expect.to.be.instanceof.promise(t,e,n)),o),this}rangeError(t,e=!0,r=TextualExpectation.toBeInstanceOfRangeError,n,o){return this.it(r,(()=>super.expect.to.be.instanceof.rangeError(t,e,n)),o),this}referenceError(t,e=!0,r=TextualExpectation.toBeInstanceOfReferenceError,n,o){return this.it(r,(()=>super.expect.to.be.instanceof.referenceError(t,e,n)),o),this}regExp(t,e=!0,r=TextualExpectation.toBeInstanceOfRegExp,n,o){return this.it(r,(()=>super.expect.to.be.instanceof.regexp(t,e,n)),o),this}set(t,e=!0,r=TextualExpectation.toBeInstanceOfSet,n,o){return this.it(r,(()=>super.expect.to.be.instanceof.set(t,e,n)),o),this}storage(t,e=!0,r="",n,o){return this}string(t,e=!0,r=TextualExpectation.toBeInstanceOfString,n,o){return this.it(r,(()=>super.expect.to.be.instanceof.string(t,e,n)),o),this}syntaxError(t,e=!0,r=TextualExpectation.toBeInstanceOfSyntaxError,n,o){return this.it(r,(()=>super.expect.to.be.instanceof.syntaxError(t,e,n)),o),this}typeError(t,e=!0,r=TextualExpectation.toBeInstanceOfTypeError,n,o){return this.it(r,(()=>super.expect.to.be.instanceof.typeError(t,e,n)),o),this}URIError(t,e=!0,r=TextualExpectation.toBeInstanceOfURIError,n,o){return this.it(r,(()=>super.expect.to.be.instanceof.URIError(t,e,n)),o),this}weakMap(t,e=!0,r=TextualExpectation.toBeInstanceOfWeakMap,n,o){return this.it(r,(()=>super.expect.to.be.instanceof.weakMap(t,e,n)),o),this}weakSet(t,e=!0,r=TextualExpectation.toBeInstanceOfWeakSet,n,o){return this.it(r,(()=>super.expect.to.be.instanceof.weakSet(t,e,n)),o),this}}