fix(tools): update report user test (#51919)

This commit is contained in:
Naomi Carrigan
2023-10-11 21:07:31 -07:00
committed by GitHub
parent 2cc2ba2708
commit 09d6c1eb9e

View File

@@ -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