feat: 审计链路
Some checks failed
构建并部署前端到测试环境 / build-and-deploy (push) Failing after 18s

This commit is contained in:
luo
2026-08-07 18:38:28 +08:00
parent b8b2854aa6
commit 9f7f619083
7 changed files with 105 additions and 54 deletions

View File

@@ -119,3 +119,18 @@ test('finance targets preserve only complete backend-provided conditions', async
await cleanup()
}
})
test('explicit investigation references suppress empty, unreliable and self targets', async () => {
const { module, cleanup } = await importAuditNavigation()
const { resolveInvestigationReference } = module
try {
assert.equal(resolveInvestigationReference(' request-1 '), 'request-1')
assert.equal(resolveInvestigationReference(' '), null)
assert.equal(resolveInvestigationReference('event-1', { currentId: 'event-1' }), null)
assert.equal(resolveInvestigationReference('event-2', { currentId: 'event-1' }), 'event-2')
assert.equal(resolveInvestigationReference('correlation-1', { fidelity: false }), null)
} finally {
await cleanup()
}
})