import { describe, expect, it } from "vitest";
import { marketMapper, normalizeOdds } from "@/server/providers/odds/normalizer";

describe("odds normalizer", () => {
  it("rejects invalid decimal odds", () => {
    expect(() => normalizeOdds("1.00")).toThrow(/Invalid/);
  });

  it("normalizes supported market names", () => {
    expect(marketMapper("1x2")).toEqual({ name: "1X2", type: "THREE_WAY" });
  });
});
