test(typert): reject a lookup parameter that accepts undefined
This commit is contained in:
@@ -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: [{
|
||||
|
||||
Reference in New Issue
Block a user