mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-14 08:34:07 -08:00
fix test
This commit is contained in:
parent
50ca48b480
commit
13d8a3358c
|
@ -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' }),
|
||||||
]),
|
]),
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue