All files increment-id.ts

100% Statements 11/11
100% Branches 3/3
100% Functions 3/3
100% Lines 11/11

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 132x 53x 53x 1047x 1047x 53x 11623x 11623x 53x   2x 2x  
export class IncrementId {
    private value = 0;
    public equal(id: number) {
        return this.value === id;
    }
    public next() {
        return ++this.value;
    }
}
 
export const PAGE_ID = new IncrementId();
export const LAYER_ID = new IncrementId();