Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

test: assert unchanged goal on missing calendar (#7018)

[._.]/ Adam Eivy86b8b6318bd6
diff --git a/server/services/identity.test.js b/server/services/identity.test.js
index 0ce5277555..872faa2ffa 100644
--- a/server/services/identity.test.js
+++ b/server/services/identity.test.js
@@ -1264,7 +1264,7 @@ describe('Integration: Calendar Linking', () => {
it('should return goal unchanged when unlinking non-existent calendar', async () => {
const goal = await createGoal({ title: 'Exercise' });
const updated = await unlinkCalendarFromGoal(goal.id, 'nonexistent');
- expect(updated).toBeDefined();
+ expect(updated).toEqual(goal);
});
it('should return null when unlinking from non-existent goal', async () => {