mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
refactor: remove watermark code (#3639)
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
This commit is contained in:
parent
abebf9aff8
commit
dd12abc583
20 changed files with 21 additions and 200 deletions
|
@ -13,7 +13,6 @@ describe("exportToSvg", () => {
|
|||
const DEFAULT_OPTIONS = {
|
||||
exportBackground: false,
|
||||
viewBackgroundColor: "#ffffff",
|
||||
shouldAddWatermark: false,
|
||||
};
|
||||
|
||||
it("with default arguments", () => {
|
||||
|
@ -37,17 +36,6 @@ describe("exportToSvg", () => {
|
|||
);
|
||||
});
|
||||
|
||||
it("with watermark", () => {
|
||||
const svgElement = exportUtils.exportToSvg(ELEMENTS, {
|
||||
...DEFAULT_OPTIONS,
|
||||
shouldAddWatermark: true,
|
||||
});
|
||||
|
||||
expect(svgElement.querySelector("text")?.textContent).toMatchInlineSnapshot(
|
||||
`"Made with Excalidraw"`,
|
||||
);
|
||||
});
|
||||
|
||||
it("with dark mode", () => {
|
||||
const svgElement = exportUtils.exportToSvg(ELEMENTS, {
|
||||
...DEFAULT_OPTIONS,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue