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 broken unit test

Jan Curnb34fd59d448c
diff --git a/test/actor.js b/test/actor.js
index 4a1febd5d..ee57ee70f 100644
--- a/test/actor.js
+++ b/test/actor.js
@@ -707,15 +707,15 @@ describe('Apify.getApifyProxyUrl()', () => {
expect(Apify.getApifyProxyUrl({
session: 'XYZ',
groups: ['g1', 'g2', 'g3'],
- })).to.be.eql('http://GROUPS-g1+g2+g3,SESSION-XYZ:[email protected]:123');
+ })).to.be.eql('http://groups-g1+g2+g3,session-XYZ:[email protected]:123');
expect(Apify.getApifyProxyUrl({
groups: ['g1', 'g2', 'g3'],
- })).to.be.eql('http://GROUPS-g1+g2+g3:[email protected]:123');
+ })).to.be.eql('http://groups-g1+g2+g3:[email protected]:123');
expect(Apify.getApifyProxyUrl({
session: 'XYZ',
- })).to.be.eql('http://SESSION-XYZ:[email protected]:123');
+ })).to.be.eql('http://session-XYZ:[email protected]:123');
expect(Apify.getApifyProxyUrl()).to.be.eql('http://auto:[email protected]:123');
@@ -743,15 +743,15 @@ describe('Apify.getApifyProxyUrl()', () => {
expect(Apify.getApifyProxyUrl({
apifyProxySession: 'XYZ',
apifyProxyGroups: ['g1', 'g2', 'g3'],
- })).to.be.eql('http://GROUPS-g1+g2+g3,SESSION-XYZ:[email protected]:123');
+ })).to.be.eql('http://groups-g1+g2+g3,session-XYZ:[email protected]:123');
expect(Apify.getApifyProxyUrl({
apifyProxyGroups: ['g1', 'g2', 'g3'],
- })).to.be.eql('http://GROUPS-g1+g2+g3:[email protected]:123');
+ })).to.be.eql('http://groups-g1+g2+g3:[email protected]:123');
expect(Apify.getApifyProxyUrl({
apifyProxySession: 'XYZ',
- })).to.be.eql('http://SESSION-XYZ:[email protected]:123');
+ })).to.be.eql('http://session-XYZ:[email protected]:123');
expect(Apify.getApifyProxyUrl()).to.be.eql('http://auto:[email protected]:123');