kevinsmasters / mern-auth

MERN Stack authentication
0 stars 0 forks source link

fixes the register user fail test #4

Closed kevinsmasters closed 5 months ago

kevinsmasters commented 5 months ago

The final else state in the registerUser function doesn't ever get reached because it crashes into the Model and throws a 500 error. This updates the test to create the appropriate expectation.