Files
browser/platform_web/components/ScumMapTrajectoryPanel.test.ts
T

10 lines
362 B
TypeScript

import { describe, expect, it } from "vitest";
import { trajectoryPath } from "./ScumMapTrajectoryPanel";
describe("trajectoryPath", () => {
it("projects normalized map points into a stable SVG path", () => {
expect(trajectoryPath([{ mapX: 0, mapY: 0 }, { mapX: 500, mapY: 250 }, { mapX: 1000, mapY: 1000 }])).toBe("M0,1000 L500,750 L1000,0");
});
});