Show invited people the Rule, let them copy its cards for their community, and replace an expired invitation link.
This commit is contained in:
1 parent
727a92a9ac
commit
3c984e00c5
37 files changed
+1962
-19
No files matched your search
@@ -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");
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user