功能增加
This commit is contained in:
1 parent
b340fc7ad7
commit
f1993eb388
69 files changed
+2243
-162
No files matched your search
@@ -7,7 +7,9 @@ describe("create studio template interaction", () => {
|
||||
it("offers the shared 3:4 portrait preset in creation and template settings", async () => {
|
||||
const source = await readFile(createStudioUrl, "utf8");
|
||||
|
||||
expect(source).toContain('{ label: "3:4", width: 1728, height: 2304 }');
|
||||
const presets = await readFile(new URL("../lib/image-size-presets.ts", import.meta.url), "utf8");
|
||||
expect(presets).toContain('{ label: "3:4", width: 1728, height: 2304 }');
|
||||
expect(source).toContain('from "@/lib/image-size-presets"');
|
||||
expect(source.match(/imageSizePresets\.map/g)?.length || 0).toBeGreaterThanOrEqual(2);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user