Show invited people the Rule, let them copy its cards for their community, and replace an expired invitation link.

This commit is contained in:
adilallo committed 2026-11-06 09:16:06 -07:00
1 parent 727a92a9ac
commit 3c984e00c5
37 files changed
+1962 -19

No files matched your search

+24
View File
@@ -4,6 +4,7 @@ import {
communityInviteInitials,
communityPossessive,
inviteRuleCountsLabel,
inviteRuleCountsSpoken,
} from "../../lib/create/ruleInviteCardMeta";
describe("communityInviteInitials", () => {
@@ -61,3 +62,26 @@ describe("inviteRuleCountsLabel", () => {
).toBe("3 VALUES AND 2 CARDS");
});
});
describe("inviteRuleCountsSpoken", () => {
it("uses lowercase words", () => {
expect(
inviteRuleCountsSpoken({
sections: [
{
categoryName: "Values",
entries: [
{ title: "Care", body: "We care." },
{ title: "Share", body: "We share." },
{ title: "Listen", body: "We listen." },
],
},
{
categoryName: "Communication",
entries: [{ title: "Open channel", body: "How we talk." }],
},
],
}),
).toBe("three values and one card");
});
});