mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-24 11:03:17 -04:00
fix(tools): update report user test (#51919)
This commit is contained in:
@@ -631,6 +631,9 @@ describe('userRoutes', () => {
|
||||
});
|
||||
|
||||
test('POST returns 200 status code with "success" message', async () => {
|
||||
const testUser = await fastifyTestInstance.prisma.user.findFirst({
|
||||
where: { email: testUserData.email }
|
||||
});
|
||||
const response = await superRequest('/user/report-user', {
|
||||
method: 'POST',
|
||||
setCookies
|
||||
@@ -656,7 +659,7 @@ Luke, I am your father
|
||||
|
||||
|
||||
Reported by:
|
||||
Username:
|
||||
Username: ${testUser?.username ?? ''}
|
||||
Name:
|
||||
Email: foo@bar.com
|
||||
|
||||
|
||||
Reference in New Issue
Block a user