aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-hub/tests/test_invite_link_client.py
diff options
context:
space:
mode:
authorChristophe Besson <cbesson@gmail.com>2026-09-25 17:10:15 +0200
committerChristophe Besson <cbesson@gmail.com>2026-09-25 17:10:15 +0200
commit90c69477d5f701158112b3c294eff26312f89da6 (patch)
tree2691ca096da5cf93482bc750c7a03599fbc44dc8 /packages/meshbay-hub/tests/test_invite_link_client.py
parent8bb94a39609f57be2c486f579849eebb04606808 (diff)
downloadmeshbay-90c69477d5f701158112b3c294eff26312f89da6.tar.gz
feat: invitation links no longer bound to an e-mail address
A link is redeemable by whoever opens it first, so it can be sent by any messaging app. The address is optional (mail + label only); a link lives 7 days, fixed. Adds a Share button; see MESHBAY_DESIGN.md §3.4. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'packages/meshbay-hub/tests/test_invite_link_client.py')
-rw-r--r--packages/meshbay-hub/tests/test_invite_link_client.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/meshbay-hub/tests/test_invite_link_client.py b/packages/meshbay-hub/tests/test_invite_link_client.py
index 2223ad8..313e224 100644
--- a/packages/meshbay-hub/tests/test_invite_link_client.py
+++ b/packages/meshbay-hub/tests/test_invite_link_client.py
@@ -188,7 +188,9 @@ def test_the_members_tab_sends_the_code_only_for_the_mail():
sends = [m.start() for m in re.finditer(r"code: node\.code", settings)]
assert len(sends) == 1
before = settings[settings.rfind("\n", 0, sends[0] - 200):sends[0]]
- assert "inviteByEmail ?" in before, "the code reaches the hub only when the box asks"
+ assert "mailIt ?" in before, "the code reaches the hub only when the box asks"
+ assert "const mailIt = inviteByEmail && Boolean(email);" in settings, (
+ "and the box asks only when there is an address to mail")
def test_signing_out_forgets_the_invitation():