Items saving in database but not passing tests

Tell us what’s happening:
Describe your issue in detail here.

When I run the tests for this section, I receive the error that:

Creating and saving a db item should succeed

However, when I log in to my db, the items are being created and saved in the db.

Your project link(s)

solution: boilerplate-mongomongoose - Replit

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36

Challenge: Create and Save a Record of a Model

Link to the challenge:

done() needs to be called inside the callback function save() takes.

Thanks! Everything works now!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.