922 remove todos from 11809 after release (#12183)

- remove todos
- remove workflow-event-listener.workspace-entity.ts
This commit is contained in:
martmull
2025-05-21 16:15:48 +02:00
committed by GitHub
parent 85a17a54b3
commit 578f07374b
11 changed files with 125 additions and 228 deletions

View File

@ -0,0 +1,57 @@
import request from 'supertest';
const client = request(`http://localhost:${APP_PORT}`);
describe('workflowAutomatedTriggersResolver (e2e)', () => {
it('should find many workflowAutomatedTriggers', () => {
const queryData = {
query: `
query workflowAutomatedTriggers {
workflowAutomatedTriggers {
edges {
node {
id
type
settings
createdAt
updatedAt
deletedAt
workflowId
}
}
}
}
`,
};
return client
.post('/graphql')
.set('Authorization', `Bearer ${ADMIN_ACCESS_TOKEN}`)
.send(queryData)
.expect(200)
.expect((res) => {
expect(res.body.data).toBeDefined();
expect(res.body.errors).toBeUndefined();
})
.expect((res) => {
const data = res.body.data.workflowAutomatedTriggers;
expect(data).toBeDefined();
expect(Array.isArray(data.edges)).toBe(true);
const edges = data.edges;
if (edges.length > 0) {
const workflowAutomatedTriggers = edges[0].node;
expect(workflowAutomatedTriggers).toHaveProperty('id');
expect(workflowAutomatedTriggers).toHaveProperty('type');
expect(workflowAutomatedTriggers).toHaveProperty('settings');
expect(workflowAutomatedTriggers).toHaveProperty('createdAt');
expect(workflowAutomatedTriggers).toHaveProperty('updatedAt');
expect(workflowAutomatedTriggers).toHaveProperty('deletedAt');
expect(workflowAutomatedTriggers).toHaveProperty('workflowId');
}
});
});
});

View File

@ -1,55 +0,0 @@
import request from 'supertest';
const client = request(`http://localhost:${APP_PORT}`);
describe('workflowEventListenersResolver (e2e)', () => {
it('should find many workflowEventListeners', () => {
const queryData = {
query: `
query workflowEventListeners {
workflowEventListeners {
edges {
node {
eventName
id
createdAt
updatedAt
deletedAt
workflowId
}
}
}
}
`,
};
return client
.post('/graphql')
.set('Authorization', `Bearer ${ADMIN_ACCESS_TOKEN}`)
.send(queryData)
.expect(200)
.expect((res) => {
expect(res.body.data).toBeDefined();
expect(res.body.errors).toBeUndefined();
})
.expect((res) => {
const data = res.body.data.workflowEventListeners;
expect(data).toBeDefined();
expect(Array.isArray(data.edges)).toBe(true);
const edges = data.edges;
if (edges.length > 0) {
const workflowEventListeners = edges[0].node;
expect(workflowEventListeners).toHaveProperty('eventName');
expect(workflowEventListeners).toHaveProperty('id');
expect(workflowEventListeners).toHaveProperty('createdAt');
expect(workflowEventListeners).toHaveProperty('updatedAt');
expect(workflowEventListeners).toHaveProperty('deletedAt');
expect(workflowEventListeners).toHaveProperty('workflowId');
}
});
});
});