chore: code formatting

This commit is contained in:
github-actions[bot]
2022-06-26 21:45:30 +00:00
parent 5f5357bab8
commit a1be8c5a01
2 changed files with 2 additions and 2 deletions

View File

@@ -332,7 +332,7 @@ export async function imgb64(image, {width, height, fallback = true} = {}) {
//Load image
try {
//Fix: redirections are not properly supported by jimp (https://github.com/oliver-moran/jimp/issues/909), seems to occur only when in jest environment
if ((typeof image === "string")&&(process.env.JEST_WORKER_ID)) {
if ((typeof image === "string") && (process.env.JEST_WORKER_ID)) {
image = (await axios.get(image)).then(response => response.request.responseURL).catch(() => null)
console.debug(`metrics/svg/imgb64 > redirected image link to ${image}`)
}

View File

@@ -653,7 +653,7 @@
{score: faker.datatype.float({max: 1}), title: "Accessibility"},
{score: faker.datatype.float({max: 1}), title: "Best Practices"},
{score: faker.datatype.float({max: 1}), title: "SEO"},
... options["pagespeed.pwa"] ? [{score : faker.datatype.number({max: 1}), title: "PWA"}] : []
...options["pagespeed.pwa"] ? [{score: faker.datatype.number({max: 1}), title: "PWA"}] : [],
],
metrics: {
observedFirstContentfulPaint: faker.datatype.number(500),