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: validate goal progress timestamp format (#7019)

[._.]/ Adam Eivy8f3aafe1ec17
diff --git a/server/services/goalProgress.test.js b/server/services/goalProgress.test.js
index 5b8a0ce631..a9d0977f50 100644
--- a/server/services/goalProgress.test.js
+++ b/server/services/goalProgress.test.js
@@ -304,8 +304,10 @@ describe('goalProgress.js', () => {
const result = await getGoalProgress();
- expect(result.updatedAt).toBeDefined();
- expect(new Date(result.updatedAt)).toBeInstanceOf(Date);
+ expect(result.updatedAt).not.toBeNull();
+ expect(typeof result.updatedAt).toBe('string');
+ expect(Number.isNaN(Date.parse(result.updatedAt))).toBe(false);
+ expect(new Date(result.updatedAt).toISOString()).toBe(result.updatedAt);
});
});