feat: set appState.exportBackground to true when exporting to jpg (#4342)

This commit is contained in:
David Luzar 2021-11-30 22:08:55 +01:00 committed by GitHub
parent 1ee8d7d082
commit afa7932c9b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 2 deletions

View file

@ -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);
});