@angular-package/testing
Version:
Jasmine unit testing wrapper with additional custom testing features.
1 lines • 528 B
JavaScript
import{TestingExpect}from"./testing-expect.class";export class Expect{get already(){return this.#t.already,this}get not(){return this.#t.not,this}#t;constructor(t=new TestingExpect){this.#t=t}expect(t,e){return this.#t.expect(t,e)}expectation(t,e,s){return e&&e(this.expect(t,s)),this}expectAsync(t,e,s,r){return r&&this.already,s&&this.not,this.#t.expectAsync(t,e,s,r)}getAlready(){return this.#t.already}getNot(){return this.#t.getNot()}setAlready(t){return this.#t.setAlready(t),this}setNot(t){return this.#t.setNot(t),this}}