should-http
Advanced tools
Comparing version 0.0.1 to 0.0.2
0.0.1 / 2014-05-29 | ||
================== | ||
* Fix for current should.js version | ||
0.0.1 / 2014-05-29 | ||
================== | ||
* Move this thing to separate repo |
@@ -28,11 +28,9 @@ /*! | ||
Assertion.add('json', function() { | ||
this.have.property('headers') | ||
.and.have.property('content-type').include('application/json'); | ||
this.have.header('content-type').match(/application\/json/i); | ||
}, true); | ||
Assertion.add('html', function() { | ||
this.have.property('headers') | ||
.and.have.property('content-type').include('text/html'); | ||
this.have.header('content-type').match(/text\/html/i); | ||
}, true); | ||
}; | ||
{ | ||
"name": "should-http", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Http requests, response assertions for should.js", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "mocha test/**.test.js" | ||
"test": "mocha --reporter mocha-better-spec-reporter test/**.test.js" | ||
}, | ||
@@ -9,0 +9,0 @@ "repository": { |
@@ -1,2 +0,3 @@ | ||
var should = require('../'); | ||
var should = require('should'); | ||
require('../'); | ||
@@ -3,0 +4,0 @@ var assert = require('assert'); |
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
5801
9
91