This commit is contained in:
@@ -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()
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user