redxzeta / Awesome-Adoption

pet adoption near your area
https://pawternityhub.netlify.app/
MIT License
59 stars 132 forks source link

Update SLogin.test.tsx #579

Closed SharavanMudaliar closed 1 year ago

SharavanMudaliar commented 1 year ago

fix: Update request body handling from 'req.body' to 'await req.json()'

This commit addresses the issue where 'req.body' was used for request body handling, which caused a 'password' error. The code has been updated to correctly use 'await req.json()' to access the 'password' property.

These changes ensure that the request body is processed correctly in the SLogin test.

redxzeta commented 1 year ago

for some reason the test is failing