diff --git a/config/quality/eslint-suppressions.json b/config/quality/eslint-suppressions.json index 15353c7d29..4d1fb3d91c 100644 --- a/config/quality/eslint-suppressions.json +++ b/config/quality/eslint-suppressions.json @@ -3339,4 +3339,4 @@ "count": 5 } } -} +} \ No newline at end of file diff --git a/tests/unit/free-pool-frontend-repro.test.ts b/tests/unit/free-pool-frontend-repro.test.ts index 7c93bd194b..404c22faa2 100644 --- a/tests/unit/free-pool-frontend-repro.test.ts +++ b/tests/unit/free-pool-frontend-repro.test.ts @@ -89,10 +89,7 @@ test("Payload normalization produces correct values with real API contract shape // THE FIX: normalize through body?.data const payload = (apiResponse as Record)?.data ?? apiResponse; - const fixedProxies = - (payload as Record).proxies ?? - (payload as Record).items ?? - []; + const fixedProxies = (payload as Record).proxies ?? (payload as Record).items ?? []; const fixedTotal = (payload as Record).total ?? 0; assert.equal(fixedProxies.length, 2, "FIX: payload.proxies contains 2 items"); @@ -102,7 +99,10 @@ test("Payload normalization produces correct values with real API contract shape // Also verify the backend contract is still correct test("Backend route test asserts body.data.proxies contract", () => { // Verify the route test asserts data.proxies, not data.items - const routeTestPath = resolve(import.meta.dirname, "./api/free-proxies-list-route.test.ts"); + const routeTestPath = resolve( + import.meta.dirname, + "./api/free-proxies-list-route.test.ts" + ); const routeTest = readFileSync(routeTestPath, "utf-8"); assert.ok( routeTest.includes("body.data.proxies") || routeTest.includes("body.data.total"),