From a92476359645b4ab08d38823121f5ddf107a5451 Mon Sep 17 00:00:00 2001 From: Michael Kret Date: Tue, 17 Sep 2024 07:23:45 +0300 Subject: [PATCH] displayForm tests update --- .../src/utils/__tests__/executionUtils.spec.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/packages/editor-ui/src/utils/__tests__/executionUtils.spec.ts b/packages/editor-ui/src/utils/__tests__/executionUtils.spec.ts index 68f8456d28..1c4bb10378 100644 --- a/packages/editor-ui/src/utils/__tests__/executionUtils.spec.ts +++ b/packages/editor-ui/src/utils/__tests__/executionUtils.spec.ts @@ -15,7 +15,6 @@ vi.mock('../executionUtils', async () => { describe('displayForm', () => { const getTestUrlMock = vi.fn(); - const shouldShowFormMock = vi.fn(); beforeEach(() => { vi.clearAllMocks(); @@ -50,11 +49,8 @@ describe('displayForm', () => { pinData, destinationNode: undefined, directParentNodes: [], - formWaitingUrl: 'http://example.com', - executionId: undefined, source: undefined, getTestUrl: getTestUrlMock, - shouldShowForm: shouldShowFormMock, }); expect(openPopUpWindow).not.toHaveBeenCalled(); @@ -86,11 +82,8 @@ describe('displayForm', () => { pinData: {}, destinationNode: 'Node3', directParentNodes: ['Node4'], - formWaitingUrl: 'http://example.com', - executionId: '12345', source: undefined, getTestUrl: getTestUrlMock, - shouldShowForm: shouldShowFormMock, }); expect(openPopUpWindow).not.toHaveBeenCalled(); @@ -116,11 +109,8 @@ describe('displayForm', () => { pinData: {}, destinationNode: undefined, directParentNodes: [], - formWaitingUrl: 'http://example.com', - executionId: undefined, source: 'RunData.ManualChatMessage', getTestUrl: getTestUrlMock, - shouldShowForm: shouldShowFormMock, }); expect(openPopUpWindow).not.toHaveBeenCalled();