Challenge 'Create a Model' Asking for Help

I’ve tried almost everything but nothing worked out.

Now I’m 100% sure that I can’t get this done without asking for support. :upside_down_face:

Huge Thankyou for helping

This is my project:

and
‘Creating an instance from a mongoose schema should succeed’
was what I got.

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36 Edg/89.0.774.57.

Challenge: Create a Model

Link to the challenge:

Hey there,

nice to meet you! :wave:

So when I look at the tests, the test expects as a result:

assert.include(
    data.favoriteFoods,
    'pizza',
    '"model.favoriteFoods" does not include the expected items'
);
assert.include(
    data.favoriteFoods,
    'cheese',
    '"model.favoriteFoods" does not include the expected items'
);

=> pizza and cheese in favoriteFoods.

But your response is empty:

Maybe there is a typo somewhere.

1 Like

WOW AND THERE IT IS !
I misspelled ‘favorite’ for ‘favourite’ and that was the only problem!

Exactly what I want to say, ‘even the sad panda smiles’! (I know there is a meme but idc)

I’ve been stuck here for like a week. At least twice I rebuilt the whole project but still clueless, until you helped. I deeply appreciate it miku86, thank you.

Great work solving it. :+1:

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