Skip to content

Commit db1d33d

Browse files
committed
Update brotli analyzer tests after merge
1 parent 13f00fe commit db1d33d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/analyzer.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,9 @@ async function getChartData() {
269269
}
270270

271271
async function getCompressionAlgorithm() {
272-
return await nightmare.goto(`file://${__dirname}/output/report.html`).evaluate(
273-
() => window.compressionAlgorithm);
272+
const page = await browser.newPage();
273+
await page.goto(`file://${__dirname}/output/report.html`);
274+
return await page.evaluate(() => window.compressionAlgorithm);
274275
}
275276

276277
function forEachChartItem(chartData, cb) {

0 commit comments

Comments
 (0)