diff options
Diffstat (limited to 'test/parallel/test-querystring-maxKeys-non-finite.js')
-rw-r--r-- | test/parallel/test-querystring-maxKeys-non-finite.js | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/test/parallel/test-querystring-maxKeys-non-finite.js b/test/parallel/test-querystring-maxKeys-non-finite.js index da72dbf17c..2db3acff0f 100644 --- a/test/parallel/test-querystring-maxKeys-non-finite.js +++ b/test/parallel/test-querystring-maxKeys-non-finite.js @@ -39,12 +39,18 @@ const params = createManyParams(count); // In this instance split will always return an empty array // this test confirms that the output of parse is the expected length // when passed Infinity as the argument for maxKeys -const resultInfinity = parse(params, undefined, undefined, {maxKeys: Infinity}); -const resultNaN = parse(params, undefined, undefined, {maxKeys: NaN}); +const resultInfinity = parse(params, undefined, undefined, { + maxKeys: Infinity +}); +const resultNaN = parse(params, undefined, undefined, { + maxKeys: NaN +}); const resultInfinityString = parse(params, undefined, undefined, { maxKeys: 'Infinity' }); -const resultNaNString = parse(params, undefined, undefined, {maxKeys: 'NaN'}); +const resultNaNString = parse(params, undefined, undefined, { + maxKeys: 'NaN' +}); // Non Finite maxKeys should return the length of input assert.strictEqual(Object.keys(resultInfinity).length, count); |