mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-23 20:13:21 +03:00
Fix integration tests (#8229)
Removing leftovers of the deprecated "activity" object which is fixing our integration tests
This commit is contained in:
parent
2bfd0fe252
commit
99837f9752
@ -19,8 +19,6 @@ export const findActivityTargetsOperationSignatureFactory: RecordGqlOperationSig
|
|||||||
__typename: true,
|
__typename: true,
|
||||||
createdAt: true,
|
createdAt: true,
|
||||||
updatedAt: true,
|
updatedAt: true,
|
||||||
activity: true,
|
|
||||||
activityId: true,
|
|
||||||
...generateActivityTargetMorphFieldKeys(objectMetadataItems),
|
...generateActivityTargetMorphFieldKeys(objectMetadataItems),
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
@ -25,7 +25,6 @@ const ATTACHMENT_GQL_FIELDS = `
|
|||||||
updatedAt
|
updatedAt
|
||||||
deletedAt
|
deletedAt
|
||||||
authorId
|
authorId
|
||||||
activityId
|
|
||||||
taskId
|
taskId
|
||||||
noteId
|
noteId
|
||||||
personId
|
personId
|
||||||
@ -70,7 +69,6 @@ describe('attachments resolvers (integration)', () => {
|
|||||||
expect(attachment).toHaveProperty('updatedAt');
|
expect(attachment).toHaveProperty('updatedAt');
|
||||||
expect(attachment).toHaveProperty('deletedAt');
|
expect(attachment).toHaveProperty('deletedAt');
|
||||||
expect(attachment).toHaveProperty('authorId');
|
expect(attachment).toHaveProperty('authorId');
|
||||||
expect(attachment).toHaveProperty('activityId');
|
|
||||||
expect(attachment).toHaveProperty('taskId');
|
expect(attachment).toHaveProperty('taskId');
|
||||||
expect(attachment).toHaveProperty('noteId');
|
expect(attachment).toHaveProperty('noteId');
|
||||||
expect(attachment).toHaveProperty('personId');
|
expect(attachment).toHaveProperty('personId');
|
||||||
@ -104,7 +102,6 @@ describe('attachments resolvers (integration)', () => {
|
|||||||
expect(createdAttachment).toHaveProperty('updatedAt');
|
expect(createdAttachment).toHaveProperty('updatedAt');
|
||||||
expect(createdAttachment).toHaveProperty('deletedAt');
|
expect(createdAttachment).toHaveProperty('deletedAt');
|
||||||
expect(createdAttachment).toHaveProperty('authorId');
|
expect(createdAttachment).toHaveProperty('authorId');
|
||||||
expect(createdAttachment).toHaveProperty('activityId');
|
|
||||||
expect(createdAttachment).toHaveProperty('taskId');
|
expect(createdAttachment).toHaveProperty('taskId');
|
||||||
expect(createdAttachment).toHaveProperty('noteId');
|
expect(createdAttachment).toHaveProperty('noteId');
|
||||||
expect(createdAttachment).toHaveProperty('personId');
|
expect(createdAttachment).toHaveProperty('personId');
|
||||||
@ -137,7 +134,6 @@ describe('attachments resolvers (integration)', () => {
|
|||||||
expect(attachments).toHaveProperty('updatedAt');
|
expect(attachments).toHaveProperty('updatedAt');
|
||||||
expect(attachments).toHaveProperty('deletedAt');
|
expect(attachments).toHaveProperty('deletedAt');
|
||||||
expect(attachments).toHaveProperty('authorId');
|
expect(attachments).toHaveProperty('authorId');
|
||||||
expect(attachments).toHaveProperty('activityId');
|
|
||||||
expect(attachments).toHaveProperty('taskId');
|
expect(attachments).toHaveProperty('taskId');
|
||||||
expect(attachments).toHaveProperty('noteId');
|
expect(attachments).toHaveProperty('noteId');
|
||||||
expect(attachments).toHaveProperty('personId');
|
expect(attachments).toHaveProperty('personId');
|
||||||
@ -169,7 +165,6 @@ describe('attachments resolvers (integration)', () => {
|
|||||||
expect(attachment).toHaveProperty('updatedAt');
|
expect(attachment).toHaveProperty('updatedAt');
|
||||||
expect(attachment).toHaveProperty('deletedAt');
|
expect(attachment).toHaveProperty('deletedAt');
|
||||||
expect(attachment).toHaveProperty('authorId');
|
expect(attachment).toHaveProperty('authorId');
|
||||||
expect(attachment).toHaveProperty('activityId');
|
|
||||||
expect(attachment).toHaveProperty('taskId');
|
expect(attachment).toHaveProperty('taskId');
|
||||||
expect(attachment).toHaveProperty('noteId');
|
expect(attachment).toHaveProperty('noteId');
|
||||||
expect(attachment).toHaveProperty('personId');
|
expect(attachment).toHaveProperty('personId');
|
||||||
|
@ -14,8 +14,8 @@ import { generateRecordName } from 'test/integration/utils/generate-record-name'
|
|||||||
const NOTE_TARGET_1_ID = '777a8457-eb2d-40ac-a707-551b615b6987';
|
const NOTE_TARGET_1_ID = '777a8457-eb2d-40ac-a707-551b615b6987';
|
||||||
const NOTE_TARGET_2_ID = '777a8457-eb2d-40ac-a707-551b615b6988';
|
const NOTE_TARGET_2_ID = '777a8457-eb2d-40ac-a707-551b615b6988';
|
||||||
const NOTE_TARGET_3_ID = '777a8457-eb2d-40ac-a707-551b615b6989';
|
const NOTE_TARGET_3_ID = '777a8457-eb2d-40ac-a707-551b615b6989';
|
||||||
const PERSON_1_ID = '777a8457-eb2d-40ac-a707-441b615b6989';
|
const PERSON_1_ID = 'f875ff46-b881-41ba-973a-b9cd5345e8f0';
|
||||||
const PERSON_2_ID = '777a8457-eb2d-40ac-a707-331b615b6989';
|
const PERSON_2_ID = '1fe0f78c-8c59-4ce6-ae02-56571331b252';
|
||||||
const NOTE_TARGET_GQL_FIELDS = `
|
const NOTE_TARGET_GQL_FIELDS = `
|
||||||
id
|
id
|
||||||
createdAt
|
createdAt
|
||||||
|
@ -14,8 +14,8 @@ import { generateRecordName } from 'test/integration/utils/generate-record-name'
|
|||||||
const TASK_TARGET_1_ID = '777a8457-eb2d-40ac-a707-551b615b6987';
|
const TASK_TARGET_1_ID = '777a8457-eb2d-40ac-a707-551b615b6987';
|
||||||
const TASK_TARGET_2_ID = '777a8457-eb2d-40ac-a707-551b615b6988';
|
const TASK_TARGET_2_ID = '777a8457-eb2d-40ac-a707-551b615b6988';
|
||||||
const TASK_TARGET_3_ID = '777a8457-eb2d-40ac-a707-551b615b6989';
|
const TASK_TARGET_3_ID = '777a8457-eb2d-40ac-a707-551b615b6989';
|
||||||
const PERSON_1_ID = '777a8457-eb2d-40ac-a707-441b615b6989';
|
const PERSON_1_ID = 'f875ff46-b881-41ba-973a-b9cd5345e8f0';
|
||||||
const PERSON_2_ID = '777a8457-eb2d-40ac-a707-331b615b6989';
|
const PERSON_2_ID = '1fe0f78c-8c59-4ce6-ae02-56571331b252';
|
||||||
const TASK_TARGET_GQL_FIELDS = `
|
const TASK_TARGET_GQL_FIELDS = `
|
||||||
id
|
id
|
||||||
createdAt
|
createdAt
|
||||||
|
Loading…
Reference in New Issue
Block a user