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 the tests.

Petr Patek1cdbabaf0889
diff --git a/test/key_value_store.js b/test/key_value_store.js
index 7aa094958..dbb66fe5a 100644
--- a/test/key_value_store.js
+++ b/test/key_value_store.js
@@ -499,7 +499,6 @@ describe('KeyValueStore', () => {
it('should work', async () => {
process.env[ENV_VARS.LOCAL_STORAGE_DIR] = LOCAL_STORAGE_DIR;
const defaultStore = await Apify.openKeyValueStore();
- const oldGet = defaultStore.getValue;
// Uses default value.
const oldGet = defaultStore.getValue;
defaultStore.getValue = async key => expect(key).to.be.eql(KEY_VALUE_STORE_KEYS.INPUT);