Exercise Tracker tests not complete

Just to let you know the tests for the exercise tracker do not check for a date range in the log my code passed before i wrote any code to check for a range of dates.

Also if someone can advise me on how to incorporate a date range into this code i would appreciate it i have tried a bunch of things from stack overflow but it gives me errors.


 const data = await exerciseData.find({userId: req.params._id}, {_id:0, description:1, duration:1, date:1 }) .limit(req.query.limit)

index.js - boilerplate-project-exercisetracker - Replit