mirror of
https://github.com/n8n-io/n8n.git
synced 2024-09-19 22:37:31 -07:00
displayForm tests update
This commit is contained in:
parent
50450c3afb
commit
a924763596
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue