node.js - Mocha Test is Passing but Shouldn't be -


this test should fail haven't got endpoint , running yet request trying call. test runs green. i'm new mocha wondering i'm doing wrong here. i'm bdd/tdding api.

  describe('then: receive successful response', function(){         it('status code should 200', function (done){             let response = yield request.get(url).end();              expect(response).to.have.status(200);              done();         });     }); 


Comments

Popular posts from this blog

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -