contracts 1.20.0: devotionals, Bible passages, messaging.get, WhatsApp opt-out, App export
The contracts for Church App 1.0.0 (docs/APP-1.0-PLAN.md §12). Additive. - crosscode.devotional/1, the Hub's devotionals reply, and the devotionals CSV import (parseCsv, checkDevotionalCsv, template), shared by the Hub and the App - Bible books (USFM, English and Afrikaans), seven translations with YouVersion ids and copyright lines, parseBibleReference, youVersionUrl - messaging.get and the messaging.changed hint; whatsapp.optout and whatsapp_opted_out on the profile - APP_MODULES, hub.DEVOTIONALS_PATH, agent.APP_DEMO_PROFILES, app in DEMO_PRODUCTS - the app section of the church export, people[].roles - Accounts refuses the two new requests until 1.9.0 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -141,7 +141,7 @@ describe("exports", () => {
|
||||
expect(() => decryptExport(file, encryptExport(zip).key)).toThrow();
|
||||
});
|
||||
|
||||
it.each(["church-export.json", "church-export-website.json"])("%s has no internal ids", (file) => {
|
||||
it.each(["church-export.json", "church-export-website.json", "church-export-app.json"])("%s has no internal ids", (file) => {
|
||||
const data = sample(file);
|
||||
expect(churchExportSchema.safeParse(data).success).toBe(true);
|
||||
const keys: string[] = [];
|
||||
@@ -174,6 +174,13 @@ describe("seed-demo jobs", () => {
|
||||
expect(args({ church: "hope", product: "accounts", profile: "small" })).toBe(false);
|
||||
expect(agent.WEBSITE_DEMO_PROFILES).toHaveLength(8);
|
||||
});
|
||||
it("1.20.0: an App demo names the product and takes only an App profile, without an admin email", () => {
|
||||
expect(agent.DEMO_PRODUCTS).toContain("app");
|
||||
expect(args({ church: "demo2", product: "app", profile: "acacia-hill" })).toBe(true);
|
||||
expect(args({ church: "demo2", product: "app", profile: "bold-plant" })).toBe(false);
|
||||
expect(args({ church: "demo2", profile: "acacia-hill" })).toBe(false);
|
||||
expect(args({ church: "demo2", product: "app", profile: "acacia-hill", adminEmail: "jane@hope.test" })).toBe(false);
|
||||
});
|
||||
});
|
||||
|
||||
describe("env-read and env-set jobs (1.12.0)", () => {
|
||||
|
||||
Reference in New Issue
Block a user