From 75e7934595109a76817e0293db81ffcc300af39a Mon Sep 17 00:00:00 2001 From: Kentaro Wakayama Date: Tue, 10 Mar 2026 16:26:15 +0100 Subject: [PATCH] fix: remove unused vars and use const in pipeline.behavior.test.ts Fixes lint errors breaking CI on main: - Remove unused slug, projectId, generatedCss variables - Change let to const for candidatesReceived (single assignment) Closes #604 --- src/rendering/orchestrator/pipeline.behavior.test.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/rendering/orchestrator/pipeline.behavior.test.ts b/src/rendering/orchestrator/pipeline.behavior.test.ts index d5ac6c8ef8..af376773a5 100644 --- a/src/rendering/orchestrator/pipeline.behavior.test.ts +++ b/src/rendering/orchestrator/pipeline.behavior.test.ts @@ -166,14 +166,8 @@ describe("RenderPipeline behavior", () => { }); it("resolvePageData falls back to candidate extraction when no CSS link in HTML", async () => { - const slug = "/behavior-css-fallback"; - const projectId = "proj-css-fallback"; const pipeline = createPipeline("/project/pages/behavior-css-fallback.tsx"); - // Stub generateTailwindCSS at the pipeline level to prove the fallback path runs - const generatedCss = ".fallback{display:block}"; - let candidatesReceived: string[] | undefined; - (pipeline as any).loadModule = async () => ({}); (pipeline as any).renderPage = async () => ({ html: @@ -193,7 +187,7 @@ describe("RenderPipeline behavior", () => { const { extractCandidates } = await import("#veryfront/html/styles-builder/index.ts"); const html = `
hello
`; - candidatesReceived = extractCandidates(html); + const candidatesReceived = extractCandidates(html); // Verify candidates were actually extracted from the HTML assertEquals(