mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-04 19:21:51 +00:00
17 lines
595 B
TypeScript
17 lines
595 B
TypeScript
import { readFileSync } from "node:fs";
|
|
import path from "node:path";
|
|
import { fileURLToPath } from "node:url";
|
|
|
|
import { describe, expect, it } from "vitest";
|
|
|
|
describe("inline resource container", () => {
|
|
const currentDir = path.dirname(fileURLToPath(import.meta.url));
|
|
const filePath = path.join(currentDir, "inline-resource-container.tsx");
|
|
const source = readFileSync(filePath, "utf8");
|
|
|
|
it("uses the shared finding-group resource state hook", () => {
|
|
expect(source).toContain("useFindingGroupResourceState");
|
|
expect(source).not.toContain("useInfiniteResources");
|
|
});
|
|
});
|