diff --git a/package.json b/package.json index dcafb9a..acceaf7 100644 --- a/package.json +++ b/package.json @@ -43,4 +43,4 @@ "browserslist": [ "last 1 chrome versions" ] -} +} \ No newline at end of file diff --git a/test/test.ts b/test/test.ts index f531c7e..4f3cd10 100644 --- a/test/test.ts +++ b/test/test.ts @@ -14,9 +14,7 @@ tap.test('should start the smartssr instance', async () => { }); tap.test('should render central.eu', async (tools) => { - await testSSRInstance.renderPage( - 'https://in.work' - ); + await testSSRInstance.renderPage('https://in.work'); }); tap.skip.test('should render lossless.com', async () => { diff --git a/ts/smartssr.classes.smartssr.ts b/ts/smartssr.classes.smartssr.ts index 08b5cfb..9bee42c 100644 --- a/ts/smartssr.classes.smartssr.ts +++ b/ts/smartssr.classes.smartssr.ts @@ -51,7 +51,7 @@ export class SmartSSR { renderTimeMeasurement.start(); await page.goto(urlArg, { waitUntil: 'networkidle2', - timeout: 30000 + timeout: 30000, }); let screenshotBuffer: Buffer; diff --git a/ts/smartssr.function.serialize.ts b/ts/smartssr.function.serialize.ts index bb464ce..4e22944 100644 --- a/ts/smartssr.function.serialize.ts +++ b/ts/smartssr.function.serialize.ts @@ -69,7 +69,7 @@ export function serializeFunction(rootNode) { noteForAppending.push(childNode); } }); - while(nodeArg.firstChild) { + while (nodeArg.firstChild) { nodeArg.removeChild(nodeArg.firstChild); } noteForAppending.forEach((childNode) => {