Refresh HiveGrid Cloud reference snapshot
This commit is contained in:
1 parent
5e99e14772
commit
7f88026f79
5955 files changed
+1177325
-188362
No files matched your search
+12
@@ -7,6 +7,7 @@ import {
|
||||
buildAuditExportWhere,
|
||||
computeAuditIntegritySummary,
|
||||
csvCell,
|
||||
hasAuditExportPrefixFilters,
|
||||
parseAuditExportFilters,
|
||||
renderAuditExportCsv,
|
||||
type AuditExportRow,
|
||||
@@ -35,6 +36,13 @@ describe("admin audit-export filters", () => {
|
||||
it("AUDIT_EXPORT_MAX_ROWS is set", () => {
|
||||
expect(AUDIT_EXPORT_MAX_ROWS).toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
it("only treats filters that remove the chain prefix as partial verification", () => {
|
||||
const base = { from: null, to: null, regulatoryScope: [], actorType: null, outcome: null, tenantId: null };
|
||||
expect(hasAuditExportPrefixFilters({ ...base, to: new Date("2026-01-01T00:00:00.000Z") })).toBe(false);
|
||||
expect(hasAuditExportPrefixFilters({ ...base, from: new Date("2025-01-01T00:00:00.000Z") })).toBe(true);
|
||||
expect(hasAuditExportPrefixFilters({ ...base, actorType: "admin" })).toBe(true);
|
||||
});
|
||||
});
|
||||
|
||||
describe("admin audit-export csv rendering", () => {
|
||||
@@ -48,6 +56,10 @@ describe("admin audit-export csv rendering", () => {
|
||||
expect(csvCell({ a: 1 })).toBe('"{""a"":1}"');
|
||||
});
|
||||
|
||||
it.each(["=1+1", "+cmd", "-2+3", "@SUM(A1:A2)", " =1+1", "\tformula"])("neutralizes formula value %j", (value) => {
|
||||
expect(csvCell(value)).toBe(`'${value}`);
|
||||
});
|
||||
|
||||
it("renders integrity header line and column row", () => {
|
||||
const csv = renderAuditExportCsv([], { ok: true, inspected: 0, firstBreakId: null, reason: null });
|
||||
const lines = csv.trim().split("\n");
|
||||
|
||||
Reference in new issue
Block a user