mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-14 21:10:37 +02:00
fix export.test.tsx
This commit is contained in:
@@ -45,7 +45,7 @@ describe("export", () => {
|
||||
const pngBlob = await API.loadFile("./fixtures/smiley.png");
|
||||
const pngBlobEmbedded = await encodePngMetadata({
|
||||
blob: pngBlob,
|
||||
metadata: serializeAsJSON(testElements, h.state, {}, "local"),
|
||||
metadata: serializeAsJSON(testElements, h.state, {}, "image"),
|
||||
});
|
||||
API.drop(pngBlobEmbedded);
|
||||
|
||||
@@ -58,7 +58,7 @@ describe("export", () => {
|
||||
|
||||
it("test encoding/decoding scene for SVG export", async () => {
|
||||
const encoded = await encodeSvgMetadata({
|
||||
text: serializeAsJSON(testElements, h.state, {}, "local"),
|
||||
text: serializeAsJSON(testElements, h.state, {}, "image"),
|
||||
});
|
||||
const decoded = JSON.parse(await decodeSvgMetadata({ svg: encoded }));
|
||||
expect(decoded.elements).toEqual([
|
||||
|
Reference in New Issue
Block a user