remove convertToExcalidrawElements call from restore

This commit is contained in:
Aakansha Doshi
2023-07-14 17:13:24 +05:30
parent 2ff0528a4f
commit d3361f910b
8 changed files with 128 additions and 151 deletions

View File

@@ -32,7 +32,7 @@ describe("embedding scene data", () => {
const importedData: ImportedDataState = JSON.parse(parsedString);
expect(sourceElements.map((x) => x.id)).toEqual(
convertToExcalidrawElements(importedData.elements)?.map((el) => el.id),
importedData.elements?.map((el) => el.id),
);
});
});
@@ -61,7 +61,7 @@ describe("embedding scene data", () => {
const importedData: ImportedDataState = JSON.parse(parsedString);
expect(sourceElements.map((x) => x.id)).toEqual(
convertToExcalidrawElements(importedData.elements)?.map((el) => el.id),
importedData.elements?.map((el) => el.id),
);
});
});