mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(core): Fix supportedNodes for non-lazy loaded community packages (no-changelog) (#11329)
This commit is contained in:
committed by
GitHub
parent
1c52bf9362
commit
2d36b42798
@@ -528,8 +528,28 @@ describe('POST /workflows/:id/activate', () => {
|
||||
expect(response.statusCode).toBe(404);
|
||||
});
|
||||
|
||||
test('should fail due to trying to activate a workflow without any nodes', async () => {
|
||||
const workflow = await createWorkflow({ nodes: [] }, owner);
|
||||
const response = await authOwnerAgent.post(`/workflows/${workflow.id}/activate`);
|
||||
expect(response.statusCode).toBe(400);
|
||||
});
|
||||
|
||||
test('should fail due to trying to activate a workflow without a trigger', async () => {
|
||||
const workflow = await createWorkflow({}, owner);
|
||||
const workflow = await createWorkflow(
|
||||
{
|
||||
nodes: [
|
||||
{
|
||||
id: 'uuid-1234',
|
||||
name: 'Start',
|
||||
parameters: {},
|
||||
position: [-20, 260],
|
||||
type: 'n8n-nodes-base.start',
|
||||
typeVersion: 1,
|
||||
},
|
||||
],
|
||||
},
|
||||
owner,
|
||||
);
|
||||
const response = await authOwnerAgent.post(`/workflows/${workflow.id}/activate`);
|
||||
expect(response.statusCode).toBe(400);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user