mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-11-09 04:38:49 +00:00
Co-authored-by: alejandrobailo <alejandrobailo94@gmail.com>
21 lines
630 B
TypeScript
21 lines
630 B
TypeScript
import { readFileSync } from "node:fs";
|
|
import path from "node:path";
|
|
import { fileURLToPath } from "node:url";
|
|
|
|
import { describe, expect, it } from "vitest";
|
|
|
|
describe("ComplianceCard", () => {
|
|
const currentDir = path.dirname(fileURLToPath(import.meta.url));
|
|
const filePath = path.join(currentDir, "compliance-card.tsx");
|
|
const source = readFileSync(filePath, "utf8");
|
|
|
|
it("keeps the logo canvas light in dark mode", () => {
|
|
// Given
|
|
const darkThemeSurface = "bg-bg-neutral-tertiary";
|
|
|
|
// When / Then
|
|
expect(source).toContain("bg-slate-50");
|
|
expect(source).not.toContain(darkThemeSurface);
|
|
});
|
|
});
|