import assert from "node:assert/strict"; import { readFileSync } from "node:fs"; import { fileURLToPath } from "node:url"; const panel = readFileSync( fileURLToPath(new URL("../src/features/audit/AdminAuditPanel.tsx", import.meta.url)), "utf8" ); const moduleSource = readFileSync( fileURLToPath(new URL("../src/module.ts", import.meta.url)), "utf8" ); assert.match(panel, /AdminPageLayout,[\s\S]*DataGrid,[\s\S]*Dialog,[\s\S]*DocumentationHelpLink,[\s\S]*TableActionGroup/); assert.match(panel, /topicId: "audit\.read-authorized-evidence"/); assert.match(panel, /disabledReason=\{loading \? I18N\.loading : undefined\}/); assert.match(panel, /pagination=\{\{[\s\S]*mode: "server"/); assert.match(panel, /id="admin-audit-event-details-grid"/); assert.match(panel, /auditDetailRows\(selected\?\.details \?\? \{\}\)/); assert.match(panel, /emptyText=\{I18N\.noRecords\}/); assert.doesNotMatch(panel, /