mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-12-06 19:56:45 +10:30
18 lines
489 B
TypeScript
18 lines
489 B
TypeScript
import {
|
|
createDefaultThemeCoverSvg,
|
|
defaultThemeCoverDataUrl,
|
|
} from "./themePlaceholderCover";
|
|
|
|
describe("themePlaceholderCover", () => {
|
|
it("builds an svg cover placeholder", () => {
|
|
const svg = createDefaultThemeCoverSvg("#3366ff");
|
|
expect(svg).toContain("<svg");
|
|
expect(svg).toContain("No cover image");
|
|
expect(svg).toContain("#3366ff");
|
|
});
|
|
|
|
it("builds a data url", () => {
|
|
expect(defaultThemeCoverDataUrl()).toMatch(/^data:image\/svg\+xml/);
|
|
});
|
|
});
|