feat(admin): 增加审计与一致性页面

This commit is contained in:
2026-07-08 17:05:16 +08:00
parent ea0b631a83
commit 988d659fcc
9 changed files with 482 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
import assert from 'node:assert/strict';
import test from 'node:test';
import { buildAuditQueryPath } from './audit-api';
test('buildAuditQueryPath keeps only non-empty audit filters', () => {
assert.equal(
buildAuditQueryPath({
actorId: 'm-8',
entityType: 'dev_task',
entityId: '',
take: '25',
}),
'/audit?actorId=m-8&entityType=dev_task&take=25',
);
});