mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-03-22 03:08:23 +00:00
16 lines
532 B
TypeScript
16 lines
532 B
TypeScript
import { readFileSync } from "node:fs";
|
|
import path from "node:path";
|
|
import { fileURLToPath } from "node:url";
|
|
|
|
import { describe, expect, it } from "vitest";
|
|
|
|
describe("providers page", () => {
|
|
it("does not use unstable Date.now keys for the providers DataTable", () => {
|
|
const currentDir = path.dirname(fileURLToPath(import.meta.url));
|
|
const pagePath = path.join(currentDir, "page.tsx");
|
|
const source = readFileSync(pagePath, "utf8");
|
|
|
|
expect(source).not.toContain("key={`providers-${Date.now()}`}");
|
|
});
|
|
});
|