UNPKG

@angular-package/testing

Version:

Jasmine unit testing wrapper with additional custom testing features.

1 lines 401 B
export class TestingCounter{get counterActive(){return this.#t}get counterDescription(){return this.#e}#t;#e;#r=0;constructor(t=!0,e=!1){this.#t=t,this.#e=e}count(){return this.#t&&this.#r++,this}resetCounter(){return this.#r=0,this}getCounter(){return this.#r}joinCounter(t){return`[counter]. ${t}`}replaceCounter(t){return(this.#e?this.joinCounter(t):t).replace("[counter]",`${this.getCounter()}`)}}