should-http
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -0,0 +0,0 @@ 0.0.3 / 2015-05-21 |
@@ -61,7 +61,7 @@ /*! | ||
* | ||
* res.should.be.json; | ||
* res.should.be.json(); | ||
*/ | ||
Assertion.add('json', function() { | ||
this.have.header('content-type').match(/application\/json/i); | ||
}, true); | ||
}); | ||
@@ -77,8 +77,8 @@ /** | ||
* | ||
* res.should.be.json; | ||
* res.should.be.html(); | ||
*/ | ||
Assertion.add('html', function() { | ||
this.have.header('content-type').match(/text\/html/i); | ||
}, true); | ||
}); | ||
}; | ||
{ | ||
"name": "should-http", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Http requests, response assertions for should.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -25,3 +25,3 @@ var should = require('should'); | ||
req.should.be.json; | ||
req.should.be.json(); | ||
@@ -34,3 +34,3 @@ req = { | ||
req.should.be.json; | ||
req.should.be.json(); | ||
@@ -43,5 +43,5 @@ req = { | ||
req.should.not.be.json; | ||
req.should.not.be.json(); | ||
({}).should.not.be.json; | ||
({}).should.not.be.json(); | ||
}); | ||
@@ -81,2 +81,2 @@ | ||
}) | ||
}); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7119
139