mocha - Testing with mochai/ chai , should eventually have NOT resolving promise -


  it('should begin no users', function() {     return user.find({}).exec().should       .eventually.have.length(0);   }); 

hi, test fails, aftereach , before function clears users tested , seen through database. error message states cant read have of undefined, console logged promise. thus, should.eventually.have not resolving promise. please.


Comments

Popular posts from this blog

minify - Minimizing css files -

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -