From 0ec74159e7bf4b98130c4df84afe75ed834fdd01 Mon Sep 17 00:00:00 2001 From: Gergo Magyar Date: Sun, 3 May 2026 09:43:36 +0100 Subject: [PATCH] style: apply prettier formatting to git-clone.test.ts --- gitnexus/test/unit/git-clone.test.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/gitnexus/test/unit/git-clone.test.ts b/gitnexus/test/unit/git-clone.test.ts index 3a3f2042d..6b8e74556 100644 --- a/gitnexus/test/unit/git-clone.test.ts +++ b/gitnexus/test/unit/git-clone.test.ts @@ -137,9 +137,7 @@ describe('git-clone', () => { // explicit RFC1918 cases document SSRF coverage for the full private // IPv4 surface — not just loopback and cloud metadata. expect(() => validateGitUrl('http://[64:ff9b::a00:1]/repo.git')).toThrow('private/internal'); // 10.0.0.1 - expect(() => validateGitUrl('http://[64:ff9b::ac10:1]/repo.git')).toThrow( - 'private/internal', - ); // 172.16.0.1 + expect(() => validateGitUrl('http://[64:ff9b::ac10:1]/repo.git')).toThrow('private/internal'); // 172.16.0.1 expect(() => validateGitUrl('http://[64:ff9b::c0a8:101]/repo.git')).toThrow( 'private/internal', ); // 192.168.1.1 @@ -149,9 +147,7 @@ describe('git-clone', () => { // 6to4 encodes an IPv4 address in bits 17-48, so 2002:WWXX:YYZZ::* // routes to W.X.Y.Z on 6to4-capable stacks. The protocol is deprecated // (RFC 7526), so the entire 2002::/16 block is defensively rejected. - expect(() => validateGitUrl('http://[2002:7f00:1::1]/repo.git')).toThrow( - 'private/internal', - ); // 127.0.0.1 + expect(() => validateGitUrl('http://[2002:7f00:1::1]/repo.git')).toThrow('private/internal'); // 127.0.0.1 expect(() => validateGitUrl('http://[2002:a9fe:a9fe::1]/repo.git')).toThrow( 'private/internal', ); // 169.254.169.254