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

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -