Skip to content

Commit 73be95f

Browse files
committed
Tests?
1 parent 3fb0a52 commit 73be95f

File tree

3 files changed

+25
-15
lines changed

3 files changed

+25
-15
lines changed

packages/twenty-server/test/integration/graphql/suites/object-generated/__snapshots__/messages.integration-spec.ts.snap

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,17 @@ exports[`messagesResolver (e2e) should find many messages 1`] = `
44
{
55
"createdAt": Any<String>,
66
"deletedAt": null,
7-
"id": "20202020-04c8-4f24-93f2-764948e95014",
8-
"subject": "Inquiry Regarding Topic",
9-
"text": "Good Morning,
10-
I am writing to inquire about information. Could you please provide me with details regarding this topic?
11-
Your assistance in this matter would be greatly appreciated. Thank you in advance for your prompt response.
12-
Best regards,Tim",
7+
"id": "20202020-0001-4e7c-8001-123456789bcd",
8+
"subject": "Meeting Request",
9+
"text": "Hello,
10+
11+
I hope this email finds you well. I am writing to request a meeting. I believe it would be beneficial for both parties to collaborate and explore potential opportunities.
12+
13+
Would you be available for a meeting sometime next week? Please let me know your availability, and I will arrange a suitable time.
14+
15+
Looking forward to your response.
16+
17+
Best regards",
1318
"updatedAt": Any<String>,
1419
}
1520
`;
@@ -18,12 +23,17 @@ exports[`messagesResolver (e2e) should find one message 1`] = `
1823
{
1924
"createdAt": Any<String>,
2025
"deletedAt": null,
21-
"id": "20202020-2b8a-405d-8f42-e820ca921421",
26+
"id": "20202020-0001-4e7c-8001-123456789bcd",
2227
"subject": "Meeting Request",
23-
"text": "Hello,
24-
I hope this email finds you well. I am writing to request a meeting. I believe it would be beneficial for both parties to collaborate and explore potential opportunities. Would you be available for a meeting sometime next week? Please let me know your availability, and I will arrange a suitable time.
25-
Looking forward to your response.
26-
Best regards",
28+
"text": "Hello,
29+
30+
I hope this email finds you well. I am writing to request a meeting. I believe it would be beneficial for both parties to collaborate and explore potential opportunities.
31+
32+
Would you be available for a meeting sometime next week? Please let me know your availability, and I will arrange a suitable time.
33+
34+
Looking forward to your response.
35+
36+
Best regards",
2737
"updatedAt": Any<String>,
2838
}
2939
`;

packages/twenty-server/test/integration/graphql/suites/object-generated/messages.integration-spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ describe('messagesResolver (e2e)', () => {
2222

2323
const edges = data.edges;
2424

25-
expect(edges.length).toEqual(3);
25+
expect(edges.length).toEqual(600);
2626

2727
const message1 = edges[0].node;
2828

packages/twenty-server/test/integration/graphql/suites/object-records-permissions/update-one-object-records-permissions.integration-spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ describe('updateOneObjectRecordsPermissions', () => {
3131
objectMetadataSingularName: 'view',
3232
gqlFields: 'id',
3333
filter: {
34-
icon: {
35-
eq: 'IconCat',
34+
name: {
35+
eq: 'All Pets',
3636
},
3737
},
3838
});
@@ -50,7 +50,7 @@ describe('updateOneObjectRecordsPermissions', () => {
5050
gqlFields: 'id',
5151
recordId: allPetsViewId,
5252
data: {
53-
icon: 'IconCat',
53+
icon: 'IconList',
5454
},
5555
});
5656

0 commit comments

Comments
 (0)