Fixing most tests for now

This commit is contained in:
Marcel Mraz 2025-04-16 16:26:40 +02:00
parent d9b96e8f6c
commit d17c29358b
No known key found for this signature in database
GPG key ID: 4EBD6E62DC830CD2
16 changed files with 111 additions and 96 deletions

View file

@ -1,5 +1,7 @@
import { API } from "@excalidraw/excalidraw/tests/helpers/api";
import { mutateElement } from "@excalidraw/element/mutateElement";
import { normalizeElementOrder } from "../src/sortElements";
import type { ExcalidrawElement } from "../src/types";
@ -35,7 +37,7 @@ describe("normalizeElementsOrder", () => {
boundElements: [],
});
h.app.scene.mutateElement(container, {
mutateElement(container, new Map(), {
boundElements: [{ type: "text", id: boundText.id }],
});