From: Jérôme Benoit Date: Fri, 12 Jul 2024 23:07:47 +0000 (+0200) Subject: test: fix clone() test X-Git-Tag: ocpp-server@v1.5.0~34 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=53ec800a644f89a299cede7a89dd8a7b05959797;p=e-mobility-charging-stations-simulator.git test: fix clone() test Signed-off-by: Jérôme Benoit --- diff --git a/tests/utils/Utils.test.ts b/tests/utils/Utils.test.ts index b39c5857..9637858c 100644 --- a/tests/utils/Utils.test.ts +++ b/tests/utils/Utils.test.ts @@ -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.')) }