mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
feat: set appState.exportBackground
to true
when exporting to jpg
(#4342)
This commit is contained in:
parent
1ee8d7d082
commit
afa7932c9b
4 changed files with 21 additions and 2 deletions
|
@ -42,6 +42,9 @@ describe("exportToBlob", () => {
|
|||
getDimensions: (width, height) => ({ width, height, scale: 1 }),
|
||||
// testing typo in MIME type (jpg → jpeg)
|
||||
mimeType: "image/jpg",
|
||||
appState: {
|
||||
exportBackground: true,
|
||||
},
|
||||
});
|
||||
expect(blob?.type).toBe(MIME_TYPES.jpg);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue