test: refactor tests, format files

This commit is contained in:
2026-02-08 20:45:16 +05:00
parent e838916d91
commit 59745eac4f
35 changed files with 46 additions and 119 deletions
+4 -4
View File
@@ -1,12 +1,12 @@
import {
PANEL_SETTINGS,
TYPOGRAPHY,
DEFAULT_TEXT_ALIGN,
IMAGE_SETTINGS,
PANEL_SETTINGS,
SlideDirection,
type SlideDirectionType,
TextAlign,
type TextAlignType,
DEFAULT_TEXT_ALIGN,
TYPOGRAPHY,
} from "$lib/constants";
import { describe, expect, it } from "vitest";
@@ -159,7 +159,7 @@ describe("constants", () => {
});
it("should have string format types", () => {
IMAGE_SETTINGS.SUPPORTED_FORMATS.forEach(format => {
IMAGE_SETTINGS.SUPPORTED_FORMATS.forEach((format) => {
expect(typeof format).toBe("string");
expect(format).toMatch(/^image\//);
});