refactor: move formatting related code into separate file (#4568)

Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
This commit is contained in:
Ophelia Goldstein
2025-10-13 23:50:06 +03:00
committed by GitHub
co-authored by Alexandr
parent c4a59b5afa
commit 5df2e634e9
8 changed files with 58 additions and 63 deletions
+3 -2
View File
@@ -1,14 +1,15 @@
// @ts-check
import { describe, expect, it } from "@jest/globals";
import { queryByTestId } from "@testing-library/dom";
import "@testing-library/jest-dom";
import {
encodeHTML,
formatBytes,
kFormatter,
parseBoolean,
renderError,
wrapTextMultiline,
} from "../src/common/utils.js";
import { formatBytes, kFormatter } from "../src/common/fmt.js";
describe("Test utils.js", () => {
it("should test kFormatter default behavior", () => {