Skip to content

Commit 920e5e0

Browse files
committed
Use generic calendar description fixtures
1 parent 63d6547 commit 920e5e0

2 files changed

Lines changed: 8 additions & 9 deletions

File tree

docs/releases/unreleased.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,4 @@ Example:
2929
- (#1823) Fixed zero-duration timed external calendar events rendering on multiple days in list-style calendar views
3030
- Adds a minimal display duration before passing point-in-time external events to FullCalendar
3131
- Preserves the original provider event data for context menus and debugging
32-
- Thanks to @martin-forge for reporting and debugging
3332
- Google Calendar task descriptions now use mobile-friendly plain text for Obsidian links and display labels for wiki-style project/context links.

tests/services/TaskCalendarSyncService.test.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ describe("TaskCalendarSyncService", () => {
1919
},
2020
app: {
2121
vault: {
22-
getName: jest.fn().mockReturnValue("Martin OS"),
22+
getName: jest.fn().mockReturnValue("Example Vault"),
2323
},
2424
},
2525
cacheManager: {
@@ -100,30 +100,30 @@ describe("TaskCalendarSyncService", () => {
100100

101101
it("should build plain-text calendar descriptions for external calendar clients", () => {
102102
const description = syncService.buildEventDescription({
103-
path: "1 Tasks/Tasks/Download first personal data export batch.md",
104-
title: "Download first personal data export batch",
103+
path: "Tasks/Prepare quarterly planning notes.md",
104+
title: "Prepare quarterly planning notes",
105105
status: "ready",
106106
priority: "2-high",
107107
scheduled: "2026-04-29",
108108
timeEstimate: 180,
109109
projects: [
110-
"[[0 Collect personal data exports for vault intelligence|Collect personal data exports for vault intelligence]]",
110+
"[[Projects/Quarterly Planning|Quarterly Planning]]",
111111
"[[Projects/Nested Project.md]]",
112112
"[Markdown Project](Projects/Markdown%20Project.md)",
113113
],
114-
contexts: ["[[People/Martin Ball|Martin Ball]]", "admin"],
114+
contexts: ["[[People/Alex Example|Alex Example]]", "admin"],
115115
} as TaskInfo);
116116

117117
expect(description).toContain("Priority: High");
118118
expect(description).toContain("Status: Ready");
119119
expect(description).toContain("Scheduled: 2026-04-29");
120120
expect(description).toContain("Time Estimate: 3h 0m");
121-
expect(description).toContain("Contexts: @Martin Ball, @admin");
121+
expect(description).toContain("Contexts: @Alex Example, @admin");
122122
expect(description).toContain(
123-
"Projects: Collect personal data exports for vault intelligence, Nested Project, Markdown Project"
123+
"Projects: Quarterly Planning, Nested Project, Markdown Project"
124124
);
125125
expect(description).toContain(
126-
"Open in Obsidian: obsidian://open?vault=Martin%20OS&file=1%20Tasks%2FTasks%2FDownload%20first%20personal%20data%20export%20batch.md"
126+
"Open in Obsidian: obsidian://open?vault=Example%20Vault&file=Tasks%2FPrepare%20quarterly%20planning%20notes.md"
127127
);
128128
expect(description).not.toContain("[[");
129129
expect(description).not.toContain("]]");

0 commit comments

Comments
 (0)