Permalink
Browse files

use should's json checker

  • Loading branch information...
1 parent 760374e commit b84a720493818df9d812a42323e5eef0a28ff7d3 @jed committed Apr 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/test.js
View
2 test/test.js
@@ -19,7 +19,7 @@ describe("sajak", function() {
it("should have content-type 'application/json'", function(done) {
request("http://sajak:pass@localhost:8000/", function(err, res, body) {
- res.headers.should.have.property("content-type", "application/json; charset=utf-8")
+ res.should.be.json
done()
})
})

0 comments on commit b84a720

Please sign in to comment.