Comparing version 1.1.0 to 1.1.1
1.1.1 / 2012-09-19 | ||
================== | ||
* add .type for eql()s assert | ||
1.1.0 / 2012-07-30 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -1,2 +0,1 @@ | ||
/*! | ||
@@ -33,8 +32,2 @@ * Should | ||
/** | ||
* Library version. | ||
*/ | ||
exports.version = '1.0.0'; | ||
/** | ||
* Assert _obj_ exists, with optional message. | ||
@@ -47,3 +40,3 @@ * | ||
exports.exist = function(obj, msg){ | ||
exports.exist = exports.exists = function(obj, msg){ | ||
if (null == obj) { | ||
@@ -66,3 +59,3 @@ throw new AssertionError({ | ||
exports.not = {}; | ||
exports.not.exist = function(obj, msg){ | ||
exports.not.exist = exports.not.exists = function(obj, msg){ | ||
if (null != obj) { | ||
@@ -120,6 +113,7 @@ throw new AssertionError({ | ||
* @param {Object} expected | ||
* @param {String} type | ||
* @api private | ||
*/ | ||
assert: function(expr, msg, negatedMsg, expected){ | ||
assert: function(expr, msg, negatedMsg, expected, type){ | ||
var msg = this.negate ? negatedMsg : msg | ||
@@ -136,2 +130,4 @@ , ok = this.negate ? !expr : expr | ||
, stackStartFunction: this.assert | ||
, negated: this.negate | ||
, type: type | ||
}); | ||
@@ -296,3 +292,4 @@ }, | ||
, function(){ return 'expected ' + this.inspect + ' to not equal ' + i(val) + (desc ? " | " + desc : "") } | ||
, val); | ||
, val | ||
, 'equal'); | ||
return this; | ||
@@ -299,0 +296,0 @@ }, |
{ "name": "should" | ||
, "description": "test framework agnostic BDD-style assertions" | ||
, "version": "1.1.0" | ||
, "version": "1.1.1" | ||
, "author": "TJ Holowaychuk <tj@vision-media.ca>" | ||
@@ -5,0 +5,0 @@ , "repository": { "type": "git", "url": "git://github.com/visionmedia/should.js.git" } |
@@ -19,6 +19,2 @@ | ||
module.exports = { | ||
'test .version': function(){ | ||
should.version.should.match(/^\d+\.\d+\.\d+$/); | ||
}, | ||
'test double require': function(){ | ||
@@ -25,0 +21,0 @@ require('../').should.equal(should); |
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
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
54851
0
1294