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: use the supported route harness for connector erasure queries

[._.]/ Adam Eivy0bf6ffe0a412
diff --git a/server/routes/timeline.test.js b/server/routes/timeline.test.js
index 5797b6b719..1ed33606c3 100644
--- a/server/routes/timeline.test.js
+++ b/server/routes/timeline.test.js
@@ -473,7 +473,7 @@ describe('timeline erase routes (#12987)', () => {
expect(listed.status).toBe(200);
expect(listed.body.sources).toEqual(sources);
for (const { source } of listed.body.sources) {
- const erased = await request(app).delete('/api/timeline/events').query({ source });
+ const erased = await request(app).delete(`/api/timeline/events?${new URLSearchParams({ source })}`);
expect(erased.status).toBe(200);
expect(humanActivity.eraseEvents).toHaveBeenLastCalledWith({ source });
}