test: ensure --radius is coming through

This commit is contained in:
shadcn
2026-04-21 13:03:40 +04:00
parent c4def9305f
commit 5e61f9c4a4
2 changed files with 3 additions and 0 deletions

View File

@@ -42,6 +42,7 @@ describe("GET /init", () => {
},
})
expect(json.cssVars.light).toBeDefined()
expect(json.cssVars.light.radius).toBe("0.625rem")
expect(json.dependencies).toBeUndefined()
expect(json.registryDependencies).toBeUndefined()
})

View File

@@ -149,6 +149,7 @@ describe("buildPartialRegistryBase", () => {
baseColor: "taupe",
},
})
expect(result.cssVars?.light?.radius).toBe("0.875rem")
expect(result.cssVars?.light).toBeDefined()
expect(result.cssVars?.dark).toBeDefined()
expect(result.registryDependencies).toBeUndefined()
@@ -198,6 +199,7 @@ describe("buildPartialRegistryBase", () => {
expect(result.config?.tailwind?.baseColor).toBe("neutral")
expect(result.registryDependencies).toEqual(["font-figtree"])
expect(result.cssVars?.light?.radius).toBe("0.625rem")
expect(result.cssVars?.light).toBeDefined()
expect(result.cssVars?.theme?.["--font-heading"]).toBe("var(--font-sans)")
})