From e1659b3bfcb733c430cdc57d4e9e06d01aca6c27 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Sun, 22 Oct 2023 17:32:47 +0100 Subject: [PATCH] test(index): optimize split param (#268) --- test/index.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/index.test.js b/test/index.test.js index 5cb13fc..3739971 100644 --- a/test/index.test.js +++ b/test/index.test.js @@ -1885,7 +1885,7 @@ test('Can abort a request using AbortController/AbortSignal', (t) => { }, { skip: globalThis.AbortController == null }) test('should pass req to ServerResponse', (t) => { - if (parseInt(process.versions.node.split('.')[0], 10) < 16) { + if (parseInt(process.versions.node.split('.', 1)[0], 10) < 16) { t.pass('Skip because Node version < 16') t.end() return