test.web/core/predicates/link.predicate.test.ts

test.web/core/predicates/link.predicate.test.ts is a file in Codebase Testing. 9 lines of code and 0 definitions.

import { describe, expect, it } from "vitest";
import { isGenericLabel } from "@banes-lab/web/core/predicates/link.predicate.ts";

describe("isGenericLabel", () => {
    it("recognizes link text that names nothing out of context, whatever its case and spacing", () => {
        expect(isGenericLabel("Start")).toBe(true);
        expect(isGenericLabel("  Read   more ")).toBe(true);
        expect(isGenericLabel("Start the methodology")).toBe(false);
    });
});