summaryrefslogtreecommitdiff
path: root/tests/brainstorm-server/server.test.js
diff options
context:
space:
mode:
authorJesse Vincent <jesse@primeradiant.com>2026-06-09 18:33:00 -0700
committerDrew Ritter <drew@primeradiant.com>2026-06-16 10:09:45 -0700
commit01de36703dcef42c9c5c5eafa840fb6cd8bcb29a (patch)
tree6ee880f979b73b527476c32eb03863631994194d /tests/brainstorm-server/server.test.js
parentcb5bb885fd7cf00a1820f20d922df06ec02d4bed (diff)
test(brainstorm-server): thread session key through tests after auth merge
Integrating the per-session-key auth onto the same branch as the dotfile and lifecycle work: two tests added after the auth commit opened WebSockets without a key (server.test.js dotfile-reload, lifecycle.test.js idle-shutdown), which the auth gate now resets. Pass ?key=/BRAINSTORM_TOKEN in both. Full suite green: ws-protocol 32, helper 12, auth 13, server 28, lifecycle 7, stop-server 4.
Diffstat (limited to 'tests/brainstorm-server/server.test.js')
-rw-r--r--tests/brainstorm-server/server.test.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/brainstorm-server/server.test.js b/tests/brainstorm-server/server.test.js
index 632710f..9455ba1 100644
--- a/tests/brainstorm-server/server.test.js
+++ b/tests/brainstorm-server/server.test.js
@@ -374,7 +374,7 @@ async function runTests() {
});
await test('does NOT send reload for ._*.html resource-fork dotfiles', async () => {
- const ws = new WebSocket(`ws://localhost:${TEST_PORT}`);
+ const ws = new WebSocket(`ws://localhost:${TEST_PORT}/?key=${TOKEN}`);
await new Promise(resolve => ws.on('open', resolve));
let gotReload = false;