You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
441 B

import { describe, expect, it } from "vitest";
import { getConfidenceScore } from "@/modules/quote/confidence";
describe("getConfidenceScore", () => {
it("source=rpa → 0.95", () => {
expect(getConfidenceScore("rpa")).toBe(0.95);
});
it("source=cache → 0.95", () => {
expect(getConfidenceScore("cache")).toBe(0.95);
});
it("source=stale → 0.70", () => {
expect(getConfidenceScore("stale")).toBe(0.7);
});
});