()
| 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 | } |
no test coverage detected
searching dependent graphs…