From 3410557a5346e7bae51d2215ecc82b3aa8fe0082 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Sat, 21 Oct 2023 20:07:08 +0100 Subject: [PATCH] test(index): optimize split param --- 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