feat(editor): Add remove node and connections functionality to canvas v2 (#9602)
This commit is contained in:
@@ -93,11 +93,11 @@ export function createTestWorkflow(options: {
|
||||
} as IWorkflowDb;
|
||||
}
|
||||
|
||||
export function createTestNode(
|
||||
node: Partial<INode> & { name: INode['name']; type: INode['type'] },
|
||||
): INode {
|
||||
export function createTestNode(node: Partial<INode> = {}): INode {
|
||||
return {
|
||||
id: uuid(),
|
||||
name: 'Node',
|
||||
type: 'n8n-nodes-base.test',
|
||||
typeVersion: 1,
|
||||
position: [0, 0] as [number, number],
|
||||
parameters: {},
|
||||
|
||||
Reference in New Issue
Block a user