mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-24 13:01:56 +00:00
69321418a3
Co-authored-by: alejandrobailo <alejandrobailo94@gmail.com>
18 lines
550 B
TypeScript
18 lines
550 B
TypeScript
import { readFileSync } from "node:fs";
|
|
import path from "node:path";
|
|
import { fileURLToPath } from "node:url";
|
|
|
|
import { describe, expect, it } from "vitest";
|
|
|
|
describe("Textarea", () => {
|
|
it("does not import Next font loaders from the shared primitive", () => {
|
|
// Given
|
|
const currentDir = path.dirname(fileURLToPath(import.meta.url));
|
|
const source = readFileSync(path.join(currentDir, "textarea.tsx"), "utf8");
|
|
|
|
// Then
|
|
expect(source).not.toContain("@/config/fonts");
|
|
expect(source).not.toContain("next/font");
|
|
});
|
|
});
|