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.

chore: fix lint

Martin Adámek782d5eb2b068
diff --git a/test/core/enqueue_links/enqueue_links.test.ts b/test/core/enqueue_links/enqueue_links.test.ts
index 15f7b0a9d..0d71fac02 100644
--- a/test/core/enqueue_links/enqueue_links.test.ts
+++ b/test/core/enqueue_links/enqueue_links.test.ts
@@ -628,7 +628,8 @@ describe('enqueueLinks()', () => {
});
test('works with string pseudoUrls', async () => {
- const { enqueued, requestQueue } = createRequestQueueMock();const pseudoUrls = [
+ const { enqueued, requestQueue } = createRequestQueueMock();
+ const pseudoUrls = [
'https://example.com/[(\\w|-|/)*]',
{ purl: '[http|https]://cool.com/', method: 'POST' as const, userData: { label: 'COOL' } },
];
@@ -666,7 +667,8 @@ describe('enqueueLinks()', () => {
});
test('throws with RegExp pseudoUrls', async () => {
- const { enqueued, requestQueue } = createRequestQueueMock();const pseudoUrls = [
+ const { enqueued, requestQueue } = createRequestQueueMock();
+ const pseudoUrls = [
/https:\/\/example\.com\/(\w|-|\/)*/,
/(http|https):\/\/cool\.com\//,
];
@@ -747,7 +749,8 @@ describe('enqueueLinks()', () => {
});
test('throws with sparse pseudoUrls[]', async () => {
- const { enqueued, requestQueue } = createRequestQueueMock();const pseudoUrls = [
+ const { enqueued, requestQueue } = createRequestQueueMock();
+ const pseudoUrls = [
'https://example.com/[(\\w|-|/)*]',
null,
'[http|https]://cool.com/',