fix export.test.tsx
This commit is contained in:
parent
6ead3ff839
commit
cf34cbdd30
@ -45,7 +45,7 @@ describe("export", () => {
|
|||||||
const pngBlob = await API.loadFile("./fixtures/smiley.png");
|
const pngBlob = await API.loadFile("./fixtures/smiley.png");
|
||||||
const pngBlobEmbedded = await encodePngMetadata({
|
const pngBlobEmbedded = await encodePngMetadata({
|
||||||
blob: pngBlob,
|
blob: pngBlob,
|
||||||
metadata: serializeAsJSON(testElements, h.state, {}, "local"),
|
metadata: serializeAsJSON(testElements, h.state, {}, "image"),
|
||||||
});
|
});
|
||||||
API.drop(pngBlobEmbedded);
|
API.drop(pngBlobEmbedded);
|
||||||
|
|
||||||
@ -58,7 +58,7 @@ describe("export", () => {
|
|||||||
|
|
||||||
it("test encoding/decoding scene for SVG export", async () => {
|
it("test encoding/decoding scene for SVG export", async () => {
|
||||||
const encoded = await encodeSvgMetadata({
|
const encoded = await encodeSvgMetadata({
|
||||||
text: serializeAsJSON(testElements, h.state, {}, "local"),
|
text: serializeAsJSON(testElements, h.state, {}, "image"),
|
||||||
});
|
});
|
||||||
const decoded = JSON.parse(await decodeSvgMetadata({ svg: encoded }));
|
const decoded = JSON.parse(await decodeSvgMetadata({ svg: encoded }));
|
||||||
expect(decoded.elements).toEqual([
|
expect(decoded.elements).toEqual([
|
||||||
|
Loading…
x
Reference in New Issue
Block a user