mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-23 09:21:00 +02:00
fix
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { decodePngMetadata, decodeSvgMetadata } from "../../data/image";
|
||||
import { ImportedDataState } from "../../data/types";
|
||||
import { convertToExcalidrawElements } from "../../element/newElement";
|
||||
import * as utils from "../../packages/utils";
|
||||
import { API } from "../helpers/api";
|
||||
|
||||
@@ -31,7 +32,7 @@ describe("embedding scene data", () => {
|
||||
const importedData: ImportedDataState = JSON.parse(parsedString);
|
||||
|
||||
expect(sourceElements.map((x) => x.id)).toEqual(
|
||||
importedData.elements?.map((el) => el.id),
|
||||
convertToExcalidrawElements(importedData.elements)?.map((el) => el.id),
|
||||
);
|
||||
});
|
||||
});
|
||||
@@ -60,7 +61,7 @@ describe("embedding scene data", () => {
|
||||
const importedData: ImportedDataState = JSON.parse(parsedString);
|
||||
|
||||
expect(sourceElements.map((x) => x.id)).toEqual(
|
||||
importedData.elements?.map((el) => el.id),
|
||||
convertToExcalidrawElements(importedData.elements)?.map((el) => el.id),
|
||||
);
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user