Phase 20: Admin Member Editor & Form Declutter #25
@@ -1234,9 +1234,7 @@ describe('PATCH /api/admin/members/:id', () => {
|
||||
currentDevUserId = adminId;
|
||||
const app = await getApp();
|
||||
|
||||
const res = await app.fetch(
|
||||
jsonRequest('PATCH', `/api/admin/members/${memberId}`, {}),
|
||||
);
|
||||
const res = await app.fetch(jsonRequest('PATCH', `/api/admin/members/${memberId}`, {}));
|
||||
expect(res.status).toBe(400);
|
||||
const body = (await res.json()) as { error: string };
|
||||
expect(body.error).toBe('Invalid request');
|
||||
|
||||
Reference in New Issue
Block a user