test(typert): reject a lookup parameter that accepts undefined
This commit is contained in:
@@ -508,6 +508,17 @@ describe('TypertRegistry', () => {
|
|||||||
...invocation(),
|
...invocation(),
|
||||||
parameters: [{ name: 'agent', wire: 'agentId', source: 'lookup', codec: { mode: 'src-json' } }],
|
parameters: [{ name: 'agent', wire: 'agentId', source: 'lookup', codec: { mode: 'src-json' } }],
|
||||||
}, 'has no lookup key'],
|
}, 'has no lookup key'],
|
||||||
|
[{
|
||||||
|
...invocation(),
|
||||||
|
parameters: [{
|
||||||
|
name: 'agent',
|
||||||
|
wire: 'agentId',
|
||||||
|
source: 'lookup',
|
||||||
|
lookup: 'fixture',
|
||||||
|
acceptsUndefined: true,
|
||||||
|
codec: { mode: 'src-json' },
|
||||||
|
}],
|
||||||
|
}, 'cannot accept undefined'],
|
||||||
[{
|
[{
|
||||||
...invocation(),
|
...invocation(),
|
||||||
parameters: [{
|
parameters: [{
|
||||||
|
|||||||
Reference in New Issue
Block a user