()
| 66 | } |
| 67 | |
| 68 | private checkCompleteEvent() { |
| 69 | if (this.completeEventEmitted && !this.isComplete()) { |
| 70 | this.completeEventEmitted = false |
| 71 | } |
| 72 | |
| 73 | if (this.isComplete() && this.current > 0 && !this.completeEventEmitted) { |
| 74 | this.completeEventEmitted = true |
| 75 | this.emit(Events.COMPLETED) |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | public tick(value: number) { |
| 80 | const incValue = (this.current + value) > this.total |
no test coverage detected