Skip to content

Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.

test(viewer): assert the public inactive Route value

sunsunsun39d466cf235b
diff --git a/archify/test/finder-browser.test.mjs b/archify/test/finder-browser.test.mjs
index dc85d0fa..14b4cd7d 100644
--- a/archify/test/finder-browser.test.mjs
+++ b/archify/test/finder-browser.test.mjs
@@ -217,7 +217,7 @@ test('Finder preserves search, keyboard, contextual Route selection and cleanup'
assert.equal(await run('Archify.finder.context()'), 'route-target');
await run(`Archify.outline.select('auth')`);
assert.equal(await run('Archify.focus.active()'), 'auth', 'the index must focus nodes after a completed Route');
- assert.equal(await run('Archify.routeProbe.active()'), 'idle');
+ assert.equal(await run('Archify.routeProbe.active()'), null);
// A sink is allowed by Route's public API even though the source picker
// filters it out. Its actual target context must render an empty list.
await run(`Archify.routeProbe.begin({source:'db'})`);
@@ -230,7 +230,7 @@ test('Finder preserves search, keyboard, contextual Route selection and cleanup'
assert.equal(await run('Archify.finder.context()'), 'route-target');
await run(`Archify.outline.select('api')`);
assert.equal(await run('Archify.focus.active()'), 'api', 'the index must focus nodes after clearing Route selection');
- assert.equal(await run('Archify.routeProbe.active()'), 'idle');
+ assert.equal(await run('Archify.routeProbe.active()'), null);
await key('/', 'Slash', 191); await opened();
assert.equal((await snapshot('route-cleared-default')).context, 'focus');
});