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: On This Day missing idea models a 404 (#12425)

[._.]/ Adam Eivy11a118a741dd
diff --git a/client/src/components/dashboard/builtins/OnThisDayWidget.navigation.test.jsx b/client/src/components/dashboard/builtins/OnThisDayWidget.navigation.test.jsx
index 061a6820d0..eda336ff7c 100644
--- a/client/src/components/dashboard/builtins/OnThisDayWidget.navigation.test.jsx
+++ b/client/src/components/dashboard/builtins/OnThisDayWidget.navigation.test.jsx
@@ -114,7 +114,7 @@ describe('On This Day record destinations', () => {
['idea', '/brain/ideas/ideas/example-deleted', 'getBrainIdea'],
])('shows missing or unavailable %s without substituting the first list record', async (type, path, getter) => {
if (type === 'memory') api[getter].mockResolvedValue(null);
- else api[getter].mockRejectedValue(new Error('Example unavailable'));
+ else api[getter].mockRejectedValue(Object.assign(new Error('Example not found'), { status: 404 }));
mount(type, path);
expect(await screen.findByText('Entry not found')).toBeTruthy();
expect(screen.getByText(/could not be loaded/)).toBeTruthy();