Skip to content

Commit 11d6514

Browse files
authored
test: fix tests in Node 16.20.x (#2538)
1 parent f7216e9 commit 11d6514

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/test_common.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,9 @@ it('`percentEncode()` encodes extra reserved characters', () => {
476476
describe('`normalizeClientRequestArgs()`', () => {
477477
it('should throw for invalid URL', () => {
478478
// See https://github.com/nodejs/node/pull/38614 release in node v16.2.0
479-
const [major, minor, patch] = process.versions.node.split('.').map(parseInt)
479+
const [major, minor, patch] = process.versions.node
480+
.split('.')
481+
.map(num => parseInt(num, 10))
480482
const useNewErrorText =
481483
major > 16 ||
482484
(major === 16 && minor > 2) ||

0 commit comments

Comments
 (0)