diff --git a/api/src/routes/user.test.ts b/api/src/routes/user.test.ts index 8cc38028ac2..e1ae37c1793 100644 --- a/api/src/routes/user.test.ts +++ b/api/src/routes/user.test.ts @@ -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