Compare commits

..

No commits in common. "db2a168f4b845f3d76bd7e26b641b9605405880f" and "5565db4d8c703bec0664e0fb0fb4f7777d4dfc4e" have entirely different histories.

3 changed files with 5 additions and 4 deletions

View File

@ -115,10 +115,10 @@ function run(url) {
let dbObject = { let dbObject = {
cruxMetrics, cruxMetrics,
lighthouseMetrics, lighthouseMetrics,
performance: Math.round(lighthouse.categories.performance.score * 100), performance: lighthouse.categories.performance.score * 100,
accessibility: Math.round(lighthouse.categories.accessibility.score * 100), accessibility: lighthouse.categories.accessibility.score * 100,
bestPractices: Math.round(lighthouse.categories["best-practices"].score * 100), bestPractices: lighthouse.categories["best-practices"].score * 100,
seo: Math.round(lighthouse.categories.seo.score * 100), seo: lighthouse.categories.seo.score * 100,
} }
return dbObject return dbObject
} }

View File

@ -7,6 +7,7 @@ var { setUpQuery, calculateAverageDynamically, run } = require("../lib/utils")
} }
let dbObjs = [] let dbObjs = []
urls.forEach((url) => { urls.forEach((url) => {
console.log("URL:", url)
dbObjs.push(run(url)) dbObjs.push(run(url))
}) })
let dbObject = calculateAverageDynamically(dbObjs) let dbObject = calculateAverageDynamically(dbObjs)