...
/Unit Testing for the Unregistered Email Scenario During Sign-In
Unit Testing for the Unregistered Email Scenario During Sign-In
Learn how to write a unit test for the signIn method when the user provides an email that doesn’t exist in the database.
We'll cover the following...
We'll cover the following...
After completing unit tests for the signUp
method, our next step is to address various scenarios for our signIn
method. Here is a list of scenarios we will cover:
-
Unregistered email: We will ensure that the
signIn
method throws anUnauthorizedException
if the email provided during the sign-in process does not exist in our system. -
Invalid password: We will ensure that the
signIn
method throws anUnauthorizedException
if the ...