fix tests

This commit is contained in:
Aakansha Doshi 2024-05-06 18:42:07 +05:30
parent e187faee77
commit 927e36c7b4
3 changed files with 4 additions and 4 deletions

View file

@ -6,7 +6,7 @@ import {
rectangleWithLinkFixture,
} from "../fixtures/elementFixture";
import { API } from "../helpers/api";
import { exportToCanvas, exportToSvg } from "../../../utils";
import { exportToCanvas, exportToSvg } from "../../../utils/export";
import { FRAME_STYLE } from "../../constants";
import { prepareElementsForExport } from "../../data";
@ -250,7 +250,7 @@ describe("exporting frames", () => {
exportPadding: 0,
exportingFrame: frame,
});
console.log("SVG IS", svg.innerHTML);
// frame itself isn't exported
expect(svg.querySelector(`[data-id="${frame.id}"]`)).toBeNull();
// frame child is exported

View file

@ -1,4 +1,4 @@
import * as utils from ".";
import * as utils from "./export";
import { diagramFactory } from "../excalidraw/tests/fixtures/diagramFixture";
import { vi } from "vitest";
import * as mockedSceneExportUtils from "../excalidraw/scene/export";