()
| 75 | } |
| 76 | |
| 77 | _fireProgress() { |
| 78 | const progressText = `(${this._stage}/${this._stageCount}) ${this._stageTask} (${this._stageProgressTask})`; |
| 79 | const stageSize = (1 / this._stageCount); |
| 80 | const progressPercent = ((this._stage - 1) * stageSize) + (stageSize * this._stageProgressDone); |
| 81 | this.emit('progress', progressText, +(progressPercent.toFixed(4))); // + converts to number after toFixed converts to string |
| 82 | } |
| 83 | } |
no test coverage detected