Delete unused objects (#7823)
Fixes #7113 --------- Co-authored-by: Weiko <corentin@twenty.com>
This commit is contained in:
@ -1,67 +0,0 @@
|
||||
import request from 'supertest';
|
||||
|
||||
const client = request(`http://localhost:${APP_PORT}`);
|
||||
|
||||
describe('activitiesResolver (e2e)', () => {
|
||||
it('should find many activities', () => {
|
||||
const queryData = {
|
||||
query: `
|
||||
query activities {
|
||||
activities {
|
||||
edges {
|
||||
node {
|
||||
title
|
||||
body
|
||||
type
|
||||
reminderAt
|
||||
dueAt
|
||||
completedAt
|
||||
id
|
||||
createdAt
|
||||
updatedAt
|
||||
deletedAt
|
||||
authorId
|
||||
assigneeId
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`,
|
||||
};
|
||||
|
||||
return client
|
||||
.post('/graphql')
|
||||
.set('Authorization', `Bearer ${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.activities;
|
||||
|
||||
expect(data).toBeDefined();
|
||||
expect(Array.isArray(data.edges)).toBe(true);
|
||||
|
||||
const edges = data.edges;
|
||||
|
||||
if (edges.length > 0) {
|
||||
const activities = edges[0].node;
|
||||
|
||||
expect(activities).toHaveProperty('title');
|
||||
expect(activities).toHaveProperty('body');
|
||||
expect(activities).toHaveProperty('type');
|
||||
expect(activities).toHaveProperty('reminderAt');
|
||||
expect(activities).toHaveProperty('dueAt');
|
||||
expect(activities).toHaveProperty('completedAt');
|
||||
expect(activities).toHaveProperty('id');
|
||||
expect(activities).toHaveProperty('createdAt');
|
||||
expect(activities).toHaveProperty('updatedAt');
|
||||
expect(activities).toHaveProperty('deletedAt');
|
||||
expect(activities).toHaveProperty('authorId');
|
||||
expect(activities).toHaveProperty('assigneeId');
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
@ -1,61 +0,0 @@
|
||||
import request from 'supertest';
|
||||
|
||||
const client = request(`http://localhost:${APP_PORT}`);
|
||||
|
||||
describe('activityTargetsResolver (e2e)', () => {
|
||||
it('should find many activityTargets', () => {
|
||||
const queryData = {
|
||||
query: `
|
||||
query activityTargets {
|
||||
activityTargets {
|
||||
edges {
|
||||
node {
|
||||
id
|
||||
createdAt
|
||||
updatedAt
|
||||
deletedAt
|
||||
activityId
|
||||
personId
|
||||
companyId
|
||||
opportunityId
|
||||
rocketId
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`,
|
||||
};
|
||||
|
||||
return client
|
||||
.post('/graphql')
|
||||
.set('Authorization', `Bearer ${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.activityTargets;
|
||||
|
||||
expect(data).toBeDefined();
|
||||
expect(Array.isArray(data.edges)).toBe(true);
|
||||
|
||||
const edges = data.edges;
|
||||
|
||||
if (edges.length > 0) {
|
||||
const activityTargets = edges[0].node;
|
||||
|
||||
expect(activityTargets).toHaveProperty('id');
|
||||
expect(activityTargets).toHaveProperty('createdAt');
|
||||
expect(activityTargets).toHaveProperty('updatedAt');
|
||||
expect(activityTargets).toHaveProperty('deletedAt');
|
||||
expect(activityTargets).toHaveProperty('activityId');
|
||||
expect(activityTargets).toHaveProperty('personId');
|
||||
expect(activityTargets).toHaveProperty('companyId');
|
||||
expect(activityTargets).toHaveProperty('opportunityId');
|
||||
expect(activityTargets).toHaveProperty('rocketId');
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
@ -18,7 +18,6 @@ describe('attachmentsResolver (e2e)', () => {
|
||||
updatedAt
|
||||
deletedAt
|
||||
authorId
|
||||
activityId
|
||||
taskId
|
||||
noteId
|
||||
personId
|
||||
@ -60,7 +59,6 @@ describe('attachmentsResolver (e2e)', () => {
|
||||
expect(attachments).toHaveProperty('updatedAt');
|
||||
expect(attachments).toHaveProperty('deletedAt');
|
||||
expect(attachments).toHaveProperty('authorId');
|
||||
expect(attachments).toHaveProperty('activityId');
|
||||
expect(attachments).toHaveProperty('taskId');
|
||||
expect(attachments).toHaveProperty('noteId');
|
||||
expect(attachments).toHaveProperty('personId');
|
||||
|
||||
@ -1,57 +0,0 @@
|
||||
import request from 'supertest';
|
||||
|
||||
const client = request(`http://localhost:${APP_PORT}`);
|
||||
|
||||
describe('commentsResolver (e2e)', () => {
|
||||
it('should find many comments', () => {
|
||||
const queryData = {
|
||||
query: `
|
||||
query comments {
|
||||
comments {
|
||||
edges {
|
||||
node {
|
||||
body
|
||||
id
|
||||
createdAt
|
||||
updatedAt
|
||||
deletedAt
|
||||
authorId
|
||||
activityId
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`,
|
||||
};
|
||||
|
||||
return client
|
||||
.post('/graphql')
|
||||
.set('Authorization', `Bearer ${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.comments;
|
||||
|
||||
expect(data).toBeDefined();
|
||||
expect(Array.isArray(data.edges)).toBe(true);
|
||||
|
||||
const edges = data.edges;
|
||||
|
||||
if (edges.length > 0) {
|
||||
const comments = edges[0].node;
|
||||
|
||||
expect(comments).toHaveProperty('body');
|
||||
expect(comments).toHaveProperty('id');
|
||||
expect(comments).toHaveProperty('createdAt');
|
||||
expect(comments).toHaveProperty('updatedAt');
|
||||
expect(comments).toHaveProperty('deletedAt');
|
||||
expect(comments).toHaveProperty('authorId');
|
||||
expect(comments).toHaveProperty('activityId');
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
@ -1,67 +0,0 @@
|
||||
import request from 'supertest';
|
||||
|
||||
const client = request(`http://localhost:${APP_PORT}`);
|
||||
|
||||
describe('searchActivitiesResolver (e2e)', () => {
|
||||
it('should find many searchActivities', () => {
|
||||
const queryData = {
|
||||
query: `
|
||||
query searchActivities {
|
||||
searchActivities {
|
||||
edges {
|
||||
node {
|
||||
title
|
||||
body
|
||||
type
|
||||
reminderAt
|
||||
dueAt
|
||||
completedAt
|
||||
id
|
||||
createdAt
|
||||
updatedAt
|
||||
deletedAt
|
||||
authorId
|
||||
assigneeId
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`,
|
||||
};
|
||||
|
||||
return client
|
||||
.post('/graphql')
|
||||
.set('Authorization', `Bearer ${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.searchActivities;
|
||||
|
||||
expect(data).toBeDefined();
|
||||
expect(Array.isArray(data.edges)).toBe(true);
|
||||
|
||||
const edges = data.edges;
|
||||
|
||||
if (edges.length > 0) {
|
||||
const searchActivities = edges[0].node;
|
||||
|
||||
expect(searchActivities).toHaveProperty('title');
|
||||
expect(searchActivities).toHaveProperty('body');
|
||||
expect(searchActivities).toHaveProperty('type');
|
||||
expect(searchActivities).toHaveProperty('reminderAt');
|
||||
expect(searchActivities).toHaveProperty('dueAt');
|
||||
expect(searchActivities).toHaveProperty('completedAt');
|
||||
expect(searchActivities).toHaveProperty('id');
|
||||
expect(searchActivities).toHaveProperty('createdAt');
|
||||
expect(searchActivities).toHaveProperty('updatedAt');
|
||||
expect(searchActivities).toHaveProperty('deletedAt');
|
||||
expect(searchActivities).toHaveProperty('authorId');
|
||||
expect(searchActivities).toHaveProperty('assigneeId');
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
@ -1,61 +0,0 @@
|
||||
import request from 'supertest';
|
||||
|
||||
const client = request(`http://localhost:${APP_PORT}`);
|
||||
|
||||
describe('searchActivityTargetsResolver (e2e)', () => {
|
||||
it('should find many searchActivityTargets', () => {
|
||||
const queryData = {
|
||||
query: `
|
||||
query searchActivityTargets {
|
||||
searchActivityTargets {
|
||||
edges {
|
||||
node {
|
||||
id
|
||||
createdAt
|
||||
updatedAt
|
||||
deletedAt
|
||||
activityId
|
||||
personId
|
||||
companyId
|
||||
opportunityId
|
||||
rocketId
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`,
|
||||
};
|
||||
|
||||
return client
|
||||
.post('/graphql')
|
||||
.set('Authorization', `Bearer ${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.searchActivityTargets;
|
||||
|
||||
expect(data).toBeDefined();
|
||||
expect(Array.isArray(data.edges)).toBe(true);
|
||||
|
||||
const edges = data.edges;
|
||||
|
||||
if (edges.length > 0) {
|
||||
const searchActivityTargets = edges[0].node;
|
||||
|
||||
expect(searchActivityTargets).toHaveProperty('id');
|
||||
expect(searchActivityTargets).toHaveProperty('createdAt');
|
||||
expect(searchActivityTargets).toHaveProperty('updatedAt');
|
||||
expect(searchActivityTargets).toHaveProperty('deletedAt');
|
||||
expect(searchActivityTargets).toHaveProperty('activityId');
|
||||
expect(searchActivityTargets).toHaveProperty('personId');
|
||||
expect(searchActivityTargets).toHaveProperty('companyId');
|
||||
expect(searchActivityTargets).toHaveProperty('opportunityId');
|
||||
expect(searchActivityTargets).toHaveProperty('rocketId');
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
@ -18,7 +18,6 @@ describe('searchAttachmentsResolver (e2e)', () => {
|
||||
updatedAt
|
||||
deletedAt
|
||||
authorId
|
||||
activityId
|
||||
taskId
|
||||
noteId
|
||||
personId
|
||||
@ -60,7 +59,6 @@ describe('searchAttachmentsResolver (e2e)', () => {
|
||||
expect(searchAttachments).toHaveProperty('updatedAt');
|
||||
expect(searchAttachments).toHaveProperty('deletedAt');
|
||||
expect(searchAttachments).toHaveProperty('authorId');
|
||||
expect(searchAttachments).toHaveProperty('activityId');
|
||||
expect(searchAttachments).toHaveProperty('taskId');
|
||||
expect(searchAttachments).toHaveProperty('noteId');
|
||||
expect(searchAttachments).toHaveProperty('personId');
|
||||
|
||||
@ -1,57 +0,0 @@
|
||||
import request from 'supertest';
|
||||
|
||||
const client = request(`http://localhost:${APP_PORT}`);
|
||||
|
||||
describe('searchCommentsResolver (e2e)', () => {
|
||||
it('should find many searchComments', () => {
|
||||
const queryData = {
|
||||
query: `
|
||||
query searchComments {
|
||||
searchComments {
|
||||
edges {
|
||||
node {
|
||||
body
|
||||
id
|
||||
createdAt
|
||||
updatedAt
|
||||
deletedAt
|
||||
authorId
|
||||
activityId
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`,
|
||||
};
|
||||
|
||||
return client
|
||||
.post('/graphql')
|
||||
.set('Authorization', `Bearer ${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.searchComments;
|
||||
|
||||
expect(data).toBeDefined();
|
||||
expect(Array.isArray(data.edges)).toBe(true);
|
||||
|
||||
const edges = data.edges;
|
||||
|
||||
if (edges.length > 0) {
|
||||
const searchComments = edges[0].node;
|
||||
|
||||
expect(searchComments).toHaveProperty('body');
|
||||
expect(searchComments).toHaveProperty('id');
|
||||
expect(searchComments).toHaveProperty('createdAt');
|
||||
expect(searchComments).toHaveProperty('updatedAt');
|
||||
expect(searchComments).toHaveProperty('deletedAt');
|
||||
expect(searchComments).toHaveProperty('authorId');
|
||||
expect(searchComments).toHaveProperty('activityId');
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user