diff --git a/packages/editor-ui/src/__tests__/mocks.ts b/packages/editor-ui/src/__tests__/mocks.ts index 130552c41915f..e3a02698c23ae 100644 --- a/packages/editor-ui/src/__tests__/mocks.ts +++ b/packages/editor-ui/src/__tests__/mocks.ts @@ -93,11 +93,11 @@ export function createTestWorkflow(options: { } as IWorkflowDb; } -export function createTestNode( - node: Partial & { name: INode['name']; type: INode['type'] }, -): INode { +export function createTestNode(node: Partial = {}): INode { return { id: uuid(), + name: 'Node', + type: 'n8n-nodes-base.test', typeVersion: 1, position: [0, 0] as [number, number], parameters: {}, diff --git a/packages/editor-ui/src/components/canvas/Canvas.vue b/packages/editor-ui/src/components/canvas/Canvas.vue index 5fac47bafec02..b72c8065f4ab1 100644 --- a/packages/editor-ui/src/components/canvas/Canvas.vue +++ b/packages/editor-ui/src/components/canvas/Canvas.vue @@ -1,23 +1,25 @@