19 lines
642 B
TypeScript
19 lines
642 B
TypeScript
import fs from "node:fs";
|
|
import path from "node:path";
|
|
|
|
import { describe, expect, it } from "vitest";
|
|
|
|
const sourcePath = path.resolve(process.cwd(), "apps/web/app/routes/app.$tenant/settings/audit-export.tsx");
|
|
|
|
describe("tenant audit export i18n", () => {
|
|
it("uses semantic keys for filter option labels", () => {
|
|
const source = fs.readFileSync(sourcePath, "utf8");
|
|
|
|
expect(source).toContain("auditExport.scopes.soc2");
|
|
expect(source).toContain("auditExport.actorTypes.apiKey");
|
|
expect(source).not.toContain(">soc2<");
|
|
expect(source).not.toContain(">gdpr<");
|
|
expect(source).not.toContain(">api_key<");
|
|
});
|
|
});
|