1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-20 02:38:53 +00:00

convert-color: color names should be case insensitive (#25140)

convert-color: colornames should be case insensitive
This commit is contained in:
karwosts
2025-04-22 22:14:53 -07:00
committed by GitHub
parent 48c90267df
commit 4c6a5ed2e3
2 changed files with 2 additions and 1 deletions

View File

@@ -48,6 +48,7 @@ describe("Color Conversion Tests", () => {
it("should convert theme color to hex (ignoring alpha)", () => {
expect(theme2hex("red")).toBe("#ff0000");
expect(theme2hex("ReD")).toBe("#ff0000");
expect(theme2hex("#ff0000")).toBe("#ff0000");
expect(theme2hex("unicorn")).toBe("unicorn");
expect(theme2hex("#abc")).toBe("#aabbcc");