fix
Some checks failed
deploy to production / lighthouse-evaluation (push) Failing after 0s
deploy to production / deploy (push) Successful in 1m15s

This commit is contained in:
Robin Grenzdörfer 2023-12-26 14:04:50 +00:00
parent 62737151ee
commit db2a168f4b
2 changed files with 4 additions and 5 deletions

View File

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

View File

@ -7,7 +7,6 @@ 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)