tj / should.js

BDD style assertions for node.js -- test framework agnostic
MIT License
2.75k stars 195 forks source link

Uncaught TypeError: Object #<Assertion> has no method 'status' #209

Closed joan-i closed 10 years ago

joan-i commented 10 years ago

I started seeing above error with existing mocha test. This used to work: var callback = function (err, result) { result.should.have.status(200); }

Any idea why it stopped working? Should module which gets pulled in is version 4.0.0

btd commented 10 years ago

You need to install also should-http. In 4.x i moved all non core staff in own repos.

btd commented 10 years ago

Also use new repo location to create issues, i will close this one, if you have issues open in new repo.