Node.js based forum software built for the modern web
test: fix group ownership schema data for tests
Julian Lamaceea229284b
diff --git a/public/openapi/write/groups/slug/ownership/uid.yaml b/public/openapi/write/groups/slug/ownership/uid.yamlindex ba8e16558e..a13c31d12f 100644--- a/public/openapi/write/groups/slug/ownership/uid.yaml+++ b/public/openapi/write/groups/slug/ownership/uid.yaml@@ -17,7 +17,7 @@ put:type: numberrequired: truedescription: uid of the user to grant ownership- example: 1+ example: 2responses:'200':description: ownership successfully granteddiff --git a/test/api/schema.js b/test/api/schema.jsindex beb644b365..b195b20480 100644--- a/test/api/schema.js+++ b/test/api/schema.js@@ -217,6 +217,11 @@ async function setupData() {await groups.create({name: 'Test Group',});+ await Promise.all([+ groups.join('Test Group', unprivUid),+ groups.join('Test Group', emailConfirmationUid),+ ]);+ await groups.ownership.grant(emailConfirmationUid, 'Test Group');// Create private groups for pending/invitationsconst [pending1, pending2, inviteUid] = await Promise.all([