mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
tests(ui): coverage for getCollectItemType
This commit is contained in:
parent
8074a802d6
commit
857889d1fa
@ -13,4 +13,10 @@ describe(getCollectItemType.name, () => {
|
||||
const result = getCollectItemType(templates, nodes, edges, n2.id);
|
||||
expect(result).toEqual<FieldType>({ name: 'IntegerField', isCollection: false, isCollectionOrScalar: false });
|
||||
});
|
||||
it('should return null if the collect node does not have any connections', () => {
|
||||
const n1 = buildInvocationNode(position, collect);
|
||||
const nodes = [n1];
|
||||
const result = getCollectItemType(templates, nodes, [], n1.id);
|
||||
expect(result).toBeNull();
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user