Comparing version 1.2.0 to 1.2.1
1.2.1 / 2012-11-02 | ||
================== | ||
* add .showDiff | ||
* Make instanceOf and throwError be aliased like others [alFReD-NSH] | ||
* Fix should[.not].exist not having stack trace #84 [alFReD-NSH] | ||
1.2.0 / 2012-09-21 | ||
@@ -3,0 +10,0 @@ ================== |
@@ -43,3 +43,3 @@ /*! | ||
message: msg || ('expected ' + i(obj) + ' to exist') | ||
, stackStartFunction: should.exist | ||
, stackStartFunction: exports.exist | ||
}); | ||
@@ -62,3 +62,3 @@ } | ||
message: msg || ('expected ' + i(obj) + ' to not exist') | ||
, stackStartFunction: should.not.exist | ||
, stackStartFunction: exports.not.exist | ||
}); | ||
@@ -716,5 +716,2 @@ } | ||
Assertion.prototype.instanceOf = Assertion.prototype.instanceof; | ||
Assertion.prototype.throwError = Assertion.prototype.throw; | ||
/** | ||
@@ -728,2 +725,4 @@ * Aliases. | ||
}) | ||
('instanceof', 'instanceOf') | ||
('throw', 'throwError') | ||
('length', 'lengthOf') | ||
@@ -730,0 +729,0 @@ ('keys', 'key') |
{ "name": "should" | ||
, "description": "test framework agnostic BDD-style assertions" | ||
, "version": "1.2.0" | ||
, "version": "1.2.1" | ||
, "author": "TJ Holowaychuk <tj@vision-media.ca>" | ||
@@ -5,0 +5,0 @@ , "repository": { "type": "git", "url": "git://github.com/visionmedia/should.js.git" } |
@@ -15,2 +15,8 @@ | ||
should.equal(msg, err.message); | ||
should(err.stack, 'Expected error to have an stack trace'); | ||
var stackTraceFirstLine = err.stack.split('\n')[1]; | ||
var message = 'Expected error to have a proper stack trace showing the file names'; | ||
should(stackTraceFirstLine, message); | ||
stackTraceFirstLine.should.match(/at\s*[\S]+/, message); | ||
} | ||
@@ -17,0 +23,0 @@ } |
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
56024
1319