Skip to content

armgit / qm

Public Imported from GitHub
0

Multiplayer agent harness for work.

test: assert portal origin with a plain substring check

Regan Bell908eae9caae7
diff --git a/test/deploy-app-shell.test.ts b/test/deploy-app-shell.test.ts
index dd4ef6b49..999ed40a0 100644
--- a/test/deploy-app-shell.test.ts
+++ b/test/deploy-app-shell.test.ts
@@ -128,7 +128,7 @@ test("app shell: a valid owner link becomes a host-only cookie and turns on the
assert.equal(page.status, 200);
assert.match(page.body, /__qmAppShell/, "the owner's top-level document load gets the shell");
assert.match(page.body, /<iframe id="app" src="\/"/, "the app renders inside a same-origin frame");
- assert.match(page.body, new RegExp(PORTAL.replace(/[/.]/g, "\\$&")), "the chat column knows the portal origin");
+ assert.ok(page.body.includes(PORTAL), "the chat column knows the portal origin");
assert.doesNotMatch(page.body, /APP<\/body>/, "the shell is served without touching the upstream");
} finally {
await f.close();