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

@ -8,7 +8,7 @@ import {
isPrimitive,
} from "@excalidraw/common";
import { Excalidraw } from "@excalidraw/excalidraw";
import { Excalidraw, mutateElement } from "@excalidraw/excalidraw";
import { actionDuplicateSelection } from "@excalidraw/excalidraw/actions";
@ -62,7 +62,7 @@ describe("duplicating single elements", () => {
// @ts-ignore
element.__proto__ = { hello: "world" };
h.app.scene.mutateElement(element, {
mutateElement(element, new Map(), {
points: [pointFrom<LocalPoint>(1, 2), pointFrom<LocalPoint>(3, 4)],
});