[#50] fixed sent invite to appear on invitee calendar

This commit is contained in:
Camille Moussu
2025-08-01 11:10:16 +02:00
committed by Benoit TELLIER
parent eac718cfdc
commit 5cdce4201a
4 changed files with 18 additions and 13 deletions
@@ -33,7 +33,7 @@ describe("Event Display", () => {
list: {
"667037022b752d0026472254/cal1": {
id: "667037022b752d0026472254/cal1",
name: "Calendar 1",
name: "Calendar",
color: "#FF0000",
events: {
event1: {
@@ -94,7 +94,7 @@ describe("Event Display", () => {
).toBeInTheDocument();
expect(screen.getByText(/\d{2}:\d{2} \d{2}:\d{2}/)).toBeInTheDocument();
expect(screen.getByText("Calendar 1")).toBeInTheDocument();
expect(screen.getByText("Calendar")).toBeInTheDocument();
});
it("calls onClose when Cancel clicked", () => {
renderWithProviders(
+11 -6
View File
@@ -147,7 +147,7 @@ describe("calendarEventToJCal", () => {
repetition: "WEEKLY",
organizer: {
cn: "Alice",
cal_address: "mailto:alice@example.com",
cal_address: "alice@example.com",
},
attendee: [
{
@@ -156,7 +156,7 @@ describe("calendarEventToJCal", () => {
rsvp: "TRUE",
role: "REQ-PARTICIPANT",
cutype: "INDIVIDUAL",
cal_address: "mailto:bob@example.com",
cal_address: "bob@example.com",
},
],
};
@@ -173,8 +173,13 @@ describe("calendarEventToJCal", () => {
["uid", {}, "text", "event-123"],
["summary", {}, "text", "Team Meeting"],
["transp", {}, "text", "OPAQUE"],
["dtstart", { tzid: "Europe/Paris" }, "date-time", "20250723T100000"],
["dtend", { tzid: "Europe/Paris" }, "date-time", "20250723T110000"],
[
"dtstart",
{ tzid: "Europe/Paris" },
"date-time",
"2025-07-23T10:00:00",
],
["dtend", { tzid: "Europe/Paris" }, "date-time", "2025-07-23T11:00:00"],
["class", {}, "text", "PUBLIC"],
["location", {}, "text", "Room 101"],
["description", {}, "text", "Discuss project roadmap."],
@@ -253,7 +258,7 @@ describe("calendarEventToJCal", () => {
repetition: "WEEKLY",
organizer: {
cn: "Alice",
cal_address: "mailto:alice@example.com",
cal_address: "alice@example.com",
},
attendee: [
{
@@ -262,7 +267,7 @@ describe("calendarEventToJCal", () => {
rsvp: "TRUE",
role: "REQ-PARTICIPANT",
cutype: "INDIVIDUAL",
cal_address: "mailto:bob@example.com",
cal_address: "bob@example.com",
},
],
};