Ready to get started?

Join Adocasts Plus for $8/mo, or sign into an existing Adocasts Plus account, to get access to all of our lessons.

robot mascot smiling

Pragmatic Testing in AdonisJS with Japa #6.3

Piecing It All Together

In This Lesson

We'll piece everything we've learned thus far together and create functional tests for a route allowing the authenticated user to change their email. This encompasses authentication, email sending, database records, and more

Created by
@tomgobich
Published

Notes Used to Craft this Lesson

So, we have an endpoint that allows users to update their account email. This endpoint:

  • Validates the desired new email

  • Requires the user to enter their password for security

  • Updates the user's email

  • Logs the change within via Email History

  • Sends a notification email to the old email

Join the Discussion 0 comments

Create a free account to join in on the discussion
robot comment bubble

Be the first to comment!