This commit is contained in:
Charlie Kolb 2024-11-07 14:58:55 +01:00
parent 50ca48b480
commit 13d8a3358c
No known key found for this signature in database

View file

@ -16,7 +16,7 @@ describe('prevNodeCompletions', () => {
const result = prevNodeCompletions(context); const result = prevNodeCompletions(context);
expect(result).not.toBeNull(); expect(result).not.toBeNull();
expect(result?.options).toHaveLength(3); expect(result?.options).toHaveLength(4);
expect(result?.options).toEqual( expect(result?.options).toEqual(
expect.arrayContaining([ expect.arrayContaining([
expect.objectContaining({ label: '$prevNode.name' }), expect.objectContaining({ label: '$prevNode.name' }),
@ -39,13 +39,13 @@ describe('prevNodeCompletions', () => {
const result = prevNodeCompletions(context); const result = prevNodeCompletions(context);
expect(result).not.toBeNull(); expect(result).not.toBeNull();
expect(result?.options).toHaveLength(3); expect(result?.options).toHaveLength(4);
expect(result?.options).toEqual( expect(result?.options).toEqual(
expect.arrayContaining([ expect.arrayContaining([
expect.objectContaining({ label: '$prevNode.name' }), expect.objectContaining({ label: '$prevNode.name' }),
expect.objectContaining({ label: '$prevNode.outputIndex' }), expect.objectContaining({ label: '$prevNode.outputIndex' }),
expect.objectContaining({ label: '$prevNode.runIndex' }), expect.objectContaining({ label: '$prevNode.runIndex' }),
expect.objectContaining({ label: '$nodeType.runIndex' }), expect.objectContaining({ label: '$prevNode.nodeType' }),
]), ]),
); );
}); });