Skip to content

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.yaml
index 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: number
required: true
description: uid of the user to grant ownership
- example: 1
+ example: 2
responses:
'200':
description: ownership successfully granted
diff --git a/test/api/schema.js b/test/api/schema.js
index 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/invitations
const [pending1, pending2, inviteUid] = await Promise.all([