MCPcopy Index your code
hub / github.com/nodejs/node / testUnlimitedKeys

Function testUnlimitedKeys

test/parallel/test-querystring.js:366–376  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

364// Test removing limit
365{
366 function testUnlimitedKeys() {
367 const query = {};
368
369 for (let i = 0; i < 2000; i++) query[i] = i;
370
371 const url = qs.stringify(query);
372
373 assert.strictEqual(
374 Object.keys(qs.parse(url, null, null, { maxKeys: 0 })).length,
375 2000);
376 }
377
378 testUnlimitedKeys();
379}

Callers 1

Calls 2

keysMethod · 0.65
parseMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…