diff --git a/apps/nextjs/src/components/board/items/actions/test/create-item.spec.ts b/apps/nextjs/src/components/board/items/actions/test/create-item.spec.ts index 3b052d35c..e38dd0ccc 100644 --- a/apps/nextjs/src/components/board/items/actions/test/create-item.spec.ts +++ b/apps/nextjs/src/components/board/items/actions/test/create-item.spec.ts @@ -21,7 +21,7 @@ describe("item actions create-item", () => { .build(); const baseLayout = board.layouts.find((layout) => layout.role === "base"); - const result = createItemCallback({ kind: "mediaMissing" })(board); + const result = createItemCallback({ kind: "downloads" })(board); const createdItem = result.items.at(0); expect(createdItem?.layouts.find((layout) => layout.layoutId === "mobile")?.width).toBe(3); @@ -165,7 +165,7 @@ describe("item actions create-item", () => { const result = createItemCallback({ id: "calendar", kind: "mediaMissing", targetSectionId: "media" })(board); expect(result.items.find((item) => item.id === "calendar")?.layouts).toEqual([ - expect.objectContaining({ layoutId: "layout", sectionId: "media", width: 4 }), + expect.objectContaining({ layoutId: "layout", sectionId: "media", width: 2 }), ]); }); @@ -262,7 +262,7 @@ describe("item actions create-item", () => { layoutId: layout.id, sectionId: "canvas", width: 1, - height: 3, + height: 2, xOffset: 0, yOffset: 1, }), diff --git a/packages/api/src/router/test/onboard.spec.ts b/packages/api/src/router/test/onboard.spec.ts index 4b765792a..5e31efef3 100644 --- a/packages/api/src/router/test/onboard.spec.ts +++ b/packages/api/src/router/test/onboard.spec.ts @@ -280,7 +280,7 @@ describe("onboard.completeSetup", () => { expect(mediaMissing).toBeDefined(); expect( await db.query.itemLayouts.findFirst({ where: eq(itemLayouts.itemId, mediaMissing?.id ?? "missing") }), - ).toMatchObject({ width: 4, height: 3 }); + ).toMatchObject({ width: 2, height: 2 }); }); it("requires an exact board id when more than one board exists", async () => {