tabsLayoutSpacing.test.ts 533 B

12345678910111213141516
  1. import { readFile } from "node:fs/promises";
  2. import { describe, expect, it } from "vitest";
  3. describe("shared tabs layout spacing", () => {
  4. it("does not impose an implicit gap between the toolbar and content", async () => {
  5. const source = await readFile(
  6. new URL("../src/components/ui/tabs.tsx", import.meta.url),
  7. "utf8",
  8. );
  9. expect(source).toContain('"group/tabs flex data-horizontal:flex-col"');
  10. expect(source).not.toContain(
  11. '"group/tabs flex gap-2 data-horizontal:flex-col"',
  12. );
  13. });
  14. });