* @param {number} score * @returns {string} the formatted audit score value
(score)
| 126 | * @returns {string} the formatted audit score value |
| 127 | */ |
| 128 | function formatScore(score) { |
| 129 | return `${(score * 100).toFixed(0).padStart(3)}`; |
| 130 | } |
| 131 | |
| 132 | /** |
| 133 | * @param url the URL to run Lighthouse against |