Files
Agent-n8n/n8n-n8n-1.109.2/packages/nodes-base/nodes/Start/__tests__/StartNode.test.ts
2025-09-08 04:48:28 +08:00

36 lines
734 B
TypeScript
Executable File

import { NodeTestHarness } from '@nodes-testing/node-test-harness';
import type { WorkflowTestData } from 'n8n-workflow';
describe('Execute Start Node', () => {
const testHarness = new NodeTestHarness();
const tests: WorkflowTestData[] = [
{
description: 'should run start node',
input: {
workflowData: {
nodes: [
{
id: 'uuid-1',
parameters: {},
name: 'Start',
type: 'n8n-nodes-base.start',
typeVersion: 1,
position: [100, 300],
},
],
connections: {},
},
},
output: {
nodeExecutionOrder: ['Start'],
nodeExecutionStack: [],
nodeData: {},
},
},
];
for (const testData of tests) {
testHarness.setupTest(testData);
}
});