mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 16:23:06 +10:00
fix: e2e tests
This commit is contained in:
@ -32,3 +32,22 @@ export const unseedUser = async (userId: number) => {
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const unseedUserByEmail = async (email: string) => {
|
||||
await prisma.user.delete({
|
||||
where: {
|
||||
email,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const extractUserVerificationToken = async (email: string) => {
|
||||
return await prisma.verificationToken.findFirstOrThrow({
|
||||
where: {
|
||||
identifier: 'confirmation-email',
|
||||
user: {
|
||||
email,
|
||||
},
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user