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.
TypeScript apifyautomationcrawlercrawlingheadlessheadless-chromejavascriptnodejsnpmplaywrightpuppeteerscraperscrapingtypescriptweb-crawlerweb-crawlingweb-scraping
Fix Session tests
Ondra Urban2878a15ac80f
diff --git a/test/session_pool/session.test.js b/test/session_pool/session.test.jsindex ca3c3a5a5..ecacd419a 100644--- a/test/session_pool/session.test.js+++ b/test/session_pool/session.test.js@@ -99,7 +99,6 @@ describe('Session - testing session behaviour ', () => {const state = session.getState();expect(state.id).toBeDefined();- expect(state.cookies).toBeDefined();expect(state.cookieJar).toBeDefined();expect(state.userData).toBeDefined();expect(state.maxErrorScore).toBeDefined();diff --git a/test/session_pool/session_pool.test.js b/test/session_pool/session_pool.test.jsindex d12c607d4..64bb69687 100644--- a/test/session_pool/session_pool.test.js+++ b/test/session_pool/session_pool.test.js@@ -96,7 +96,6 @@ describe('SessionPool - testing session pool', () => {const session = await sessionPool.getSession();expect(sessionPool.sessions.length).toBe(1);expect(session.id).toBeDefined(); // eslint-disable-line- expect(session.cookies.length).toBe(0);expect(session.maxAgeSecs).toEqual(sessionPool.sessionOptions.maxAgeSecs);expect(session.maxAgeSecs).toEqual(sessionPool.sessionOptions.maxAgeSecs);expect(session.sessionPool).toEqual(sessionPool);