import { describe, expect, it } from "vitest"; import { render, screen } from "@testing-library/react"; import { QualifyingPointsStandings } from "~/components/scoring/QualifyingPointsStandings"; const scoringRules = { pointsFor1st: 100, pointsFor2nd: 70, pointsFor3rd: 50, pointsFor4th: 40, pointsFor5th: 25, pointsFor6th: 25, pointsFor7th: 15, pointsFor8th: 15, }; describe("QualifyingPointsStandings", () => { it("renders fractional QP to hundredths", () => { render( ); expect(screen.getByText("14.67 QP")).toBeInTheDocument(); expect(screen.getByText("0.50 QP")).toBeInTheDocument(); expect(screen.getByText("0.43 QP")).toBeInTheDocument(); }); });