mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-08-24 07:12:18 +10:00
fix: issue with color format handling, resolves #3104
This commit is contained in:
@@ -21,6 +21,11 @@ describe("rgbaStringToHex", () => {
|
||||
it("converts arbitrary mid-range color", () => {
|
||||
expect(rgbaStringToHex("rgb(128, 64, 200)")).toBe("#8040c8");
|
||||
});
|
||||
|
||||
it("preserves 6-digit hex colors", () => {
|
||||
expect(rgbaStringToHex("#F1F5F9")).toBe("#f1f5f9");
|
||||
expect(rgbaStringToHex("#0F172A")).toBe("#0f172a");
|
||||
});
|
||||
});
|
||||
|
||||
describe("parseColorString", () => {
|
||||
|
||||
Reference in New Issue
Block a user