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([issue-713]): assert dropped entry in MRU cap test (code-review)

Adam Eivyf81471e19ea7
diff --git a/client/src/utils/navWorkingSet.test.js b/client/src/utils/navWorkingSet.test.js
index 02693b404b..b53ddd0d9c 100644
--- a/client/src/utils/navWorkingSet.test.js
+++ b/client/src/utils/navWorkingSet.test.js
@@ -25,6 +25,7 @@ describe('recordVisit', () => {
const result = recordVisit('/new', ['/1', '/2', '/3', '/4', '/5']);
expect(result).toEqual(['/new', '/1', '/2', '/3', '/4']);
expect(result).toHaveLength(RECENT_CAP);
+ expect(result).not.toContain('/5'); // oldest entry dropped past the cap
});
it('ignores falsy / non-string paths (returns the list unchanged)', () => {