test(typert): reject a lookup parameter that accepts undefined

This commit is contained in:
imccyu
2026-08-11 20:23:04 +08:00
parent 51b5f5b565
commit ea791827f4

View File

@@ -508,6 +508,17 @@ describe('TypertRegistry', () => {
...invocation(),
parameters: [{ name: 'agent', wire: 'agentId', source: 'lookup', codec: { mode: 'src-json' } }],
}, 'has no lookup key'],
[{
...invocation(),
parameters: [{
name: 'agent',
wire: 'agentId',
source: 'lookup',
lookup: 'fixture',
acceptsUndefined: true,
codec: { mode: 'src-json' },
}],
}, 'cannot accept undefined'],
[{
...invocation(),
parameters: [{