From 86a66e58399fea0d72eb9f2b212bc4fc99743970 Mon Sep 17 00:00:00 2001 From: Shireen Missi Date: Fri, 21 Feb 2025 18:28:43 +0000 Subject: [PATCH] fixed google sheet tests --- .../nodes/Google/Sheet/test/v2/node/delete.test.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/nodes-base/nodes/Google/Sheet/test/v2/node/delete.test.ts b/packages/nodes-base/nodes/Google/Sheet/test/v2/node/delete.test.ts index 988065baa94a0..96a8c03910940 100644 --- a/packages/nodes-base/nodes/Google/Sheet/test/v2/node/delete.test.ts +++ b/packages/nodes-base/nodes/Google/Sheet/test/v2/node/delete.test.ts @@ -2,6 +2,7 @@ import type { IExecuteFunctions } from 'n8n-workflow'; import { execute } from '../../../v2/actions/sheet/delete.operation'; import type { GoogleSheet } from '../../../v2/helpers/GoogleSheet'; +import * as helpers from '@/sso.ee/saml/saml-helpers'; describe('Google Sheet - Delete', () => { let mockExecuteFunctions: Partial; @@ -11,6 +12,9 @@ describe('Google Sheet - Delete', () => { mockExecuteFunctions = { getInputData: jest.fn().mockReturnValue([{ json: {} }]), getNodeParameter: jest.fn(), + helpers: { + constructExecutionMetaData: jest.fn((data) => ({ json: data })), + }, } as Partial; mockSheet = { @@ -137,6 +141,7 @@ describe('Google Sheet - Delete', () => { if (param === 'numberToDelete') return 1; return null; }) as unknown as IExecuteFunctions['getNodeParameter']; + mockExecuteFunctions.helpers = { constructExecutionMetaData: jest.fn((data) => data) }; const result = await execute.call( mockExecuteFunctions as IExecuteFunctions,