chore: code formatting
This commit is contained in:
@@ -435,7 +435,8 @@ export const svg = {
|
||||
console.debug("metrics/svg/resize > resizing svg")
|
||||
let height, resized, width
|
||||
try {
|
||||
({resized, width, height} = await page.evaluate(async (padding, js) => {
|
||||
({resized, width, height} = await page.evaluate(
|
||||
async (padding, js) => {
|
||||
//Execute user JavaScript if provided
|
||||
if (js) {
|
||||
try {
|
||||
@@ -469,7 +470,10 @@ export const svg = {
|
||||
document.querySelector("svg").classList.remove("no-animations")
|
||||
//Result
|
||||
return {resized:new XMLSerializer().serializeToString(document.querySelector("svg")), height, width}
|
||||
}, padding, js))
|
||||
},
|
||||
padding,
|
||||
js,
|
||||
))
|
||||
}
|
||||
catch (error) {
|
||||
console.error(error)
|
||||
|
||||
@@ -19,7 +19,7 @@ describe("Check files editions (checkout your files if needed)", () => {
|
||||
".github/workflows/examples.yml",
|
||||
".github/readme/partials/documentation/compatibility.md",
|
||||
])("%s", async file => expect((await diff()).includes(file)).toBe(false)))
|
||||
if (!["lowlighter"].includes(process.env.PR_AUTHOR))
|
||||
if (!["lowlighter"].includes(process.env.PR_AUTHOR)) {
|
||||
describe("Repository level files were not modified", () =>
|
||||
void test.each([
|
||||
".github/config/*",
|
||||
@@ -39,6 +39,7 @@ describe("Check files editions (checkout your files if needed)", () => {
|
||||
"source/app/mocks/.eslintrc.yml",
|
||||
"vercel.json",
|
||||
])("%s", async file => expect((await diff()).filter(edited => new RegExp(`^${file.replace(/[.]/g, "[.]").replace(/[*]/g, "[\\s\\S]*")}$`).test(edited)).length).toBe(0)))
|
||||
}
|
||||
})
|
||||
|
||||
//Templates editions
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//Imports
|
||||
import faker from "@faker-js/faker"
|
||||
import fs from "fs/promises"
|
||||
import axios from "axios"
|
||||
import faker from "@faker-js/faker"
|
||||
import paths from "path"
|
||||
import rss from "rss-parser"
|
||||
import urls from "url"
|
||||
|
||||
Reference in New Issue
Block a user