Hello Guys,
I am working on Delete Many Documents with model.remove() assignment. I am using the following code.
const removeManyPeople = (done) => {
const nameToRemove = “Mary”;
Person.remove({name: nameToRemove}, (err, response) => {
if(err) return console.log(err);
done(null, response);
})
};
The test does not pass and showing the following message.
// running tests
Deleting many items at once should succeed
// tests completed
Any help would be appreciated.
Thank you