From 13d8a3358c80d364356adc77cb44b600388cb884 Mon Sep 17 00:00:00 2001 From: Charlie Kolb Date: Thu, 7 Nov 2024 14:58:55 +0100 Subject: [PATCH] fix test --- .../codemirror/completions/prevNode.completions.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/editor-ui/src/plugins/codemirror/completions/prevNode.completions.test.ts b/packages/editor-ui/src/plugins/codemirror/completions/prevNode.completions.test.ts index ee4168f298..8e73ff6301 100644 --- a/packages/editor-ui/src/plugins/codemirror/completions/prevNode.completions.test.ts +++ b/packages/editor-ui/src/plugins/codemirror/completions/prevNode.completions.test.ts @@ -16,7 +16,7 @@ describe('prevNodeCompletions', () => { const result = prevNodeCompletions(context); expect(result).not.toBeNull(); - expect(result?.options).toHaveLength(3); + expect(result?.options).toHaveLength(4); expect(result?.options).toEqual( expect.arrayContaining([ expect.objectContaining({ label: '$prevNode.name' }), @@ -39,13 +39,13 @@ describe('prevNodeCompletions', () => { const result = prevNodeCompletions(context); expect(result).not.toBeNull(); - expect(result?.options).toHaveLength(3); + expect(result?.options).toHaveLength(4); expect(result?.options).toEqual( expect.arrayContaining([ expect.objectContaining({ label: '$prevNode.name' }), expect.objectContaining({ label: '$prevNode.outputIndex' }), expect.objectContaining({ label: '$prevNode.runIndex' }), - expect.objectContaining({ label: '$nodeType.runIndex' }), + expect.objectContaining({ label: '$prevNode.nodeType' }), ]), ); });