test: fix clone() test
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 12 Jul 2024 23:07:47 +0000 (01:07 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 12 Jul 2024 23:07:47 +0000 (01:07 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
tests/utils/Utils.test.ts

index b39c58578a2b1c47dd32a5d6a56b548878907d34..9637858c70448f80d8734e570c8211f2e8f2b6a9 100644 (file)
@@ -316,7 +316,7 @@ await describe('Utils test suite', async () => {
     const date = new Date()
     expect(clone(date)).toStrictEqual(date)
     expect(clone(date) === date).toBe(false)
-    if (runtime === runtimes.node && satisfies(version, '>=17.0.0')) {
+    if (runtime === runtimes.node && satisfies(version, '>=22.0.0')) {
       const url = new URL('https://domain.tld')
       expect(() => clone(url)).toThrowError(new Error('Cannot clone object of unsupported type.'))
     }