Skip to content

Crawlee—A web scraping and browser automation library for Node.js to build reliable crawlers. In JavaScript and TypeScript. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Works with Puppeteer, Playwright, Cheerio, JSDOM, and raw HTTP. Both headful and headless mode. With proxy rotation.

fixed lint.

Petr Patekdb3677adffc2
diff --git a/test/puppeteer_pool.test.js b/test/puppeteer_pool.test.js
index 872a19730..35f53c07f 100644
--- a/test/puppeteer_pool.test.js
+++ b/test/puppeteer_pool.test.js
@@ -242,11 +242,11 @@ describe('PuppeteerPool', () => {
}
await Promise.all(opennedPages);
- const instances = Object.entries(pool.activeInstances);
+ const instances = Object.values(pool.activeInstances);
expect(instances.length).toEqual(6);
- instances.forEach(([index, instance]) => {
+ instances.forEach((instance) => {
expect(instance.activePages).toEqual(2);
});