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.

Fix test broken by updating error message

Ondra Urban72f584c7527d
diff --git a/test/dataset.test.js b/test/dataset.test.js
index 30de8a69c..61fa57d62 100644
--- a/test/dataset.test.js
+++ b/test/dataset.test.js
@@ -506,7 +506,7 @@ describe('dataset', () => {
} catch (err) {
e = err;
}
- expect(e.message).toEqual('getData: The response is too large for parsing. You can fix this by lowering the "limit" option.');
+ expect(e.message).toEqual('dataset.getData(): The response is too large for parsing. You can fix this by lowering the "limit" option.');
stub.restore();
});