mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-11 09:51:40 +00:00
test: ensure --radius is coming through
This commit is contained in:
@@ -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()
|
||||
})
|
||||
|
||||
@@ -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)")
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user