Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
16 lines
757 B
TypeScript
16 lines
757 B
TypeScript
import { readFileSync } from "node:fs";
|
|
import { join } from "node:path";
|
|
import { describe, expect, it } from "vitest";
|
|
|
|
// refine-visitor-pages-and-shell: the pinned first column hides the left scroll cue, so it carries
|
|
// a divider on its right edge that shows where scrolled columns slide under it.
|
|
describe("pinned first column", () => {
|
|
const src = readFileSync(join(__dirname, "data-table.tsx"), "utf8");
|
|
it("draws a token-coloured divider on the right edge of pinned head and body cells", () => {
|
|
for (const name of ["PINNED_HEAD", "PINNED_CELL"]) {
|
|
const value = src.match(new RegExp(`const ${name}\\s*=\\s*\\n?\\s*'([^']*)'`))?.[1] ?? "";
|
|
expect(value, name).toContain("shadow-[inset_-1px_0_0_var(--border)]");
|
|
}
|
|
});
|
|
});
|