From 278528b5debf37f9214c51906d7d6574aecaca9a Mon Sep 17 00:00:00 2001 From: Liviu Burcusel Date: Sun, 19 Oct 2025 13:01:39 +0200 Subject: [PATCH] Fixed code smell identified by SonarQube --- tests/router/index.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/router/index.spec.ts b/tests/router/index.spec.ts index eb8aee6..8cad8ba 100644 --- a/tests/router/index.spec.ts +++ b/tests/router/index.spec.ts @@ -142,11 +142,11 @@ describe("Router Integration Tests", () => { it("provides route metadata access", () => { const routes = router.getRoutes(); - routes.forEach(route => { + for (const route of routes) { expect(route).toHaveProperty("path"); expect(route).toHaveProperty("name"); expect(route).toHaveProperty("meta"); - }); + } }); it("is ready after initialization", async () => {