Files
wehub-resource-sync 64ed910d3f
CI / Backend Checks (push) Has been cancelled
CI / Frontend Checks (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 11:57:20 +08:00

27 lines
726 B
TypeScript

import fs from "node:fs";
import path from "node:path";
import { describe, expect, it } from "vitest";
const PROVIDER_CARD_TSX = path.resolve(
__dirname,
"..",
"..",
"src",
"components",
"providers",
"ProviderCard.tsx",
);
describe("ProviderCard layout", () => {
const source = fs.readFileSync(PROVIDER_CARD_TSX, "utf8");
it("lets website links use available card width before truncating", () => {
expect(source).not.toContain("max-w-[280px]");
expect(source).toContain("flex min-w-0 flex-1 items-center gap-2");
expect(source).toContain("min-w-0 flex-1 space-y-1");
expect(source).toContain(
"inline-flex max-w-full items-center overflow-hidden text-left text-sm",
);
});
});