Skip to content

Commit 6ec0352

Browse files
committed
refactor: code formatting
1 parent 90705df commit 6ec0352

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

test/performance/run-benchmark.cjs

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,20 @@ const process = require('node:process');
2525
page.on('pageerror', (error) => console.error('PAGE ERROR:', error));
2626

2727
// Wait for benchmark to complete with increased timeout
28-
await page.waitForFunction(() => {
29-
const results = globalThis.performanceResults;
30-
return (
31-
results &&
32-
typeof results.initTime === 'number' &&
33-
typeof results.processTime === 'number' &&
34-
typeof results.avgProcessTime === 'number'
35-
);
36-
}, {
37-
timeout: 60_000
38-
});
28+
await page.waitForFunction(
29+
() => {
30+
const results = globalThis.performanceResults;
31+
return (
32+
results &&
33+
typeof results.initTime === 'number' &&
34+
typeof results.processTime === 'number' &&
35+
typeof results.avgProcessTime === 'number'
36+
);
37+
},
38+
{
39+
timeout: 60_000
40+
}
41+
);
3942
console.log('Performance results available');
4043

4144
// Get results
@@ -49,6 +52,7 @@ const process = require('node:process');
4952
) {
5053
throw new Error('Invalid performance results structure');
5154
}
55+
5256
return results;
5357
});
5458

0 commit comments

Comments
 (0)