From b32adb2f752dd06219d25bbda5d14cf638dffd2d Mon Sep 17 00:00:00 2001 From: martbost Date: Sat, 19 Sep 2026 18:02:09 -0500 Subject: [PATCH] test: mission link carries the token in the hash (#ph=), not the query Co-Authored-By: Claude Fable 5.1 --- test/run.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/run.js b/test/run.js index 6f198fc..b2268a4 100644 --- a/test/run.js +++ b/test/run.js @@ -41,7 +41,7 @@ const sleep = ms => new Promise(r => setTimeout(r, ms)); // start: token + url const st = await call('/api/my/start', { method: 'POST', body: JSON.stringify({ missionId: 'test-1' }) }); - eq([st.status, /[?&]ph=[a-f0-9]{32}/.test(st.body.url)], [200, true], 'start issues a token on the mission link'); + eq([st.status, /#ph=[a-f0-9]{32}$/.test(st.body.url)], [200, true], 'start issues a token on the mission link'); const t = st.body.token; // the embed's locks