Tell us what’s happening:
Hi need help about this code, if i run the test i get “Test time out” or
“// running tests
Creating many db items at once should succeed
// tests completed”
I dint understand what wrong with the following code
Your code so far
var arrayOfPeople = [ {name: "Frankie", age: 74, favoriteFoods: ["Del Taco"]}, {name: "Sol", age: 76, favoriteFoods: ["roast chicken"]}, {name: "Robert", age: 78, favoriteFoods: ["wine"]} ];
var createManyPeople = function(arrayOfPeople, done) {
Person.create(arrayOfPeople, function (err, people) {
if (err) return console.log(err);
done(null, people);
});
};
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36 OPR/68.0.3618.63
.
Challenge: undefined
Link to the challenge: