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 linter

Martin Adámekf98f514c2e63
diff --git a/test/core/puppeteer_request_interception.test.ts b/test/core/puppeteer_request_interception.test.ts
index 2d9dfa622..0dd76dd95 100644
--- a/test/core/puppeteer_request_interception.test.ts
+++ b/test/core/puppeteer_request_interception.test.ts
@@ -197,7 +197,7 @@ describe('utils.puppeteer.addInterceptRequestHandler|removeInterceptRequestHandl
// Override headers
const headers = {
...request.headers(),
- accept: 'text/html',
+ 'accept': 'text/html',
'accept-language': 'en-GB',
'upgrade-insecure-requests': '2',
};
diff --git a/test/utils/general.test.ts b/test/utils/general.test.ts
index 2f0eac0cd..eaa8c74e6 100644
--- a/test/utils/general.test.ts
+++ b/test/utils/general.test.ts
@@ -79,10 +79,10 @@ describe('sleep()', () => {
describe('snakeCaseToCamelCase()', () => {
test('should camel case all sneaky cases of snake case', () => {
const tests = {
- aaa_bbb_: 'aaaBbb',
+ 'aaa_bbb_': 'aaaBbb',
'': '',
- AaA_bBb_cCc: 'aaaBbbCcc',
- a_1_b_1a: 'a1B1a',
+ 'AaA_bBb_cCc': 'aaaBbbCcc',
+ 'a_1_b_1a': 'a1B1a',
};
Object.entries(tests).forEach(([snakeCase, camelCase]) => {