fix(core): update

This commit is contained in:
Philipp Kunz 2021-01-15 14:22:49 +00:00
parent ee613836d1
commit 25006901d9
4 changed files with 4 additions and 6 deletions

View File

@ -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 () => {

View File

@ -51,7 +51,7 @@ export class SmartSSR {
renderTimeMeasurement.start();
await page.goto(urlArg, {
waitUntil: 'networkidle2',
timeout: 30000
timeout: 30000,
});
let screenshotBuffer: Buffer;

View File

@ -69,7 +69,7 @@ export function serializeFunction(rootNode) {
noteForAppending.push(childNode);
}
});
while(nodeArg.firstChild) {
while (nodeArg.firstChild) {
nodeArg.removeChild(nodeArg.firstChild);
}
noteForAppending.forEach((childNode) => {