]> Untitled Git - lemmy.git/blobdiff - api_tests/src/shared.ts
Revert "Add pending, and change use specific API response for FollowCommunity…" ...
[lemmy.git] / api_tests / src / shared.ts
index c429a207a2b75bcf1bc30846d364eb78b1649f78..d5be61ac3f66e4164fd05cd780a5a01838170378 100644 (file)
@@ -50,7 +50,6 @@ import {
   ResolveObjectResponse,
   ResolveObject,
   CreatePostReport,
-  PostReport,
   ListPostReports,
   PostReportResponse,
   ListPostReportsResponse,
@@ -59,6 +58,7 @@ import {
   ListCommentReports,
   ListCommentReportsResponse,
   DeleteAccount,
+  DeleteAccountResponse
 } from 'lemmy-js-client';
 
 export interface API {
@@ -132,6 +132,13 @@ export async function setupLogins() {
   gamma.auth = res[2].jwt;
   delta.auth = res[3].jwt;
   epsilon.auth = res[4].jwt;
+
+  // regstration applications are now enabled by default, need to disable them
+  await alpha.client.editSite({ require_application: false, auth: alpha.auth});
+  await beta.client.editSite({ require_application: false, auth: beta.auth});
+  await gamma.client.editSite({ require_application: false, auth: gamma.auth});
+  await delta.client.editSite({ require_application: false, auth: delta.auth});
+  await epsilon.client.editSite({ require_application: false, auth: epsilon.auth});
 }
 
 export async function createPost(
@@ -552,7 +559,7 @@ export async function saveUserSettings(
 
 export async function deleteUser(
   api: API,
-): Promise<LoginResponse> {
+): Promise<DeleteAccountResponse> {
   let form: DeleteAccount = {
     auth: api.auth,
     password