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

javascript - WinJS appendTextAsync producing scheduler errors -

minify - Minimizing css files -

Sockets with kotlin -