Skip to content

Commit

Permalink
test: fix tests in Node 16.20.x (#2538)
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Oct 19, 2023
1 parent f7216e9 commit 11d6514
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_common.js
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,9 @@ it('`percentEncode()` encodes extra reserved characters', () => {
describe('`normalizeClientRequestArgs()`', () => {
it('should throw for invalid URL', () => {
// See https://github.com/nodejs/node/pull/38614 release in node v16.2.0
const [major, minor, patch] = process.versions.node.split('.').map(parseInt)
const [major, minor, patch] = process.versions.node
.split('.')
.map(num => parseInt(num, 10))
const useNewErrorText =
major > 16 ||
(major === 16 && minor > 2) ||
Expand Down

0 comments on commit 11d6514

Please sign in to comment.