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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user