✨ fix: remove unnecessary test assertions and improve act usage
This commit is contained in:
@@ -55,7 +55,6 @@ export async function POST(request: NextRequest) {
|
||||
new Promise<string>((resolve, reject) => {
|
||||
transport.sendMail(mailOptions, function (err, info) {
|
||||
if (!err) {
|
||||
console.log("Email sent");
|
||||
resolve(info.response);
|
||||
} else {
|
||||
console.error("Error sending email:", err);
|
||||
|
||||
Reference in New Issue
Block a user