mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-05-15 05:44:57 +02:00
21 lines
No EOL
545 B
TypeScript
21 lines
No EOL
545 B
TypeScript
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
//@ts-ignore
|
|
import { createSVGWindow } from "svgdom";
|
|
import { registerWindow } from "@svgdotjs/svg.js";
|
|
|
|
import { toSVG } from "../src/utils/visualUtils";
|
|
|
|
beforeAll(() => {
|
|
const window = createSVGWindow();
|
|
registerWindow(window, window.document)
|
|
})
|
|
|
|
test("Visual Segment SVG converter", async () => {
|
|
toSVG([{
|
|
time: 0,
|
|
bounds: [[0, 0], [25, 0], [25, 40], [0, 30]],
|
|
smooth: false,
|
|
curve: "linear",
|
|
color: "#000000",
|
|
}]);
|
|
}); |