refactor: minor refactors
This commit is contained in:
1 parent
f8b0c8767e
commit
fef8bc3a4a
11 files changed
+76
-55
No files matched your search
+4
-4
@@ -3,7 +3,7 @@ const {
|
||||
kFormatter,
|
||||
encodeHTML,
|
||||
renderError,
|
||||
FlexLayout,
|
||||
flexLayout,
|
||||
getCardColors,
|
||||
wrapTextMultiline,
|
||||
} = require("../src/common/utils");
|
||||
@@ -44,8 +44,8 @@ describe("Test utils.js", () => {
|
||||
).toHaveTextContent(/Secondary Message/gim);
|
||||
});
|
||||
|
||||
it("should test FlexLayout", () => {
|
||||
const layout = FlexLayout({
|
||||
it("should test flexLayout", () => {
|
||||
const layout = flexLayout({
|
||||
items: ["<text>1</text>", "<text>2</text>"],
|
||||
gap: 60,
|
||||
}).join("");
|
||||
@@ -54,7 +54,7 @@ describe("Test utils.js", () => {
|
||||
`<g transform=\"translate(0, 0)\"><text>1</text></g><g transform=\"translate(60, 0)\"><text>2</text></g>`,
|
||||
);
|
||||
|
||||
const columns = FlexLayout({
|
||||
const columns = flexLayout({
|
||||
items: ["<text>1</text>", "<text>2</text>"],
|
||||
gap: 60,
|
||||
direction: "column",
|
||||
|
||||
Reference in new issue
Block a user