Skip to content

Commit

Permalink
work for #6625 Scaling options accept invalid values
Browse files Browse the repository at this point in the history
  • Loading branch information
OlgaLarina committed Feb 25, 2025
1 parent 52e5b5d commit bdb9afc
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,11 @@ test("Creator theme check scale", (): any => {
expect(themeModelJsonCssVariables["--ctr-font-unit"]).toEqual("12px");
expect(themeModelJsonCssVariables["--ctr-line-height-unit"]).toEqual("12px");

scale.value = 225;
scale.value = 225; // max = 200
themeModelJsonCssVariables = themeModel.toJSON().cssVariables || {};
expect(themeModelJsonCssVariables["--ctr-size-unit"]).toEqual("18px");
expect(themeModelJsonCssVariables["--ctr-spacing-unit"]).toEqual("18px");
expect(themeModelJsonCssVariables["--ctr-corner-radius-unit"]).toEqual("18px");
expect(themeModelJsonCssVariables["--ctr-size-unit"]).toEqual("16px");
expect(themeModelJsonCssVariables["--ctr-spacing-unit"]).toEqual("16px");
expect(themeModelJsonCssVariables["--ctr-corner-radius-unit"]).toEqual("16px");
});

test("Creator theme: apply custom theme", (): any => {
Expand Down

0 comments on commit bdb9afc

Please sign in to comment.