mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-24 21:30:17 +08:00
2781d40e82
* fix(ui): improve skills and provider interactions * fix(skills): keep repo manager available on skills.sh * test(skills): cover repo switch after refresh * fix(skills): keep refresh available for empty repo results --------- Co-authored-by: thisTom <19346741+thisTom@users.noreply.github.com>
27 lines
726 B
TypeScript
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",
|
|
);
|
|
});
|
|
});
|