Compare commits
No commits in common. "db2a168f4b845f3d76bd7e26b641b9605405880f" and "5565db4d8c703bec0664e0fb0fb4f7777d4dfc4e" have entirely different histories.
db2a168f4b
...
5565db4d8c
Binary file not shown.
@ -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
|
||||||
}
|
}
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user