refactor: move all color related code into separate file (#4557)

Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
This commit is contained in:
Ophelia Goldstein
2025-10-11 22:07:03 +03:00
committed by GitHub
co-authored by Alexandr
parent 6a542c870d
commit 701068b8bc
11 changed files with 152 additions and 161 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import "@testing-library/jest-dom";
import { cssToObject } from "@uppercod/css-to-object";
import { Card } from "../src/common/Card.js";
import { icons } from "../src/common/icons.js";
import { getCardColors } from "../src/common/utils.js";
import { getCardColors } from "../src/common/color.js";
describe("Card", () => {
it("should hide border", () => {
+1 -1
View File
@@ -4,12 +4,12 @@ import "@testing-library/jest-dom";
import {
encodeHTML,
formatBytes,
getCardColors,
kFormatter,
parseBoolean,
renderError,
wrapTextMultiline,
} from "../src/common/utils.js";
import { getCardColors } from "../src/common/color.js";
describe("Test utils.js", () => {
it("should test kFormatter", () => {