Comparing version 0.0.1 to 0.0.2
13
chai.js
@@ -144,3 +144,3 @@ | ||
this.assert( | ||
null !== this.obj | ||
null != this.obj | ||
, 'expected ' + this.inspect + ' to exist' | ||
@@ -172,2 +172,7 @@ , 'expected ' + this.inspect + ' to not exist'); | ||
Assertion.prototype.eql = function (obj) { | ||
return this; | ||
}; | ||
Assertion.prototype.above = function (val) { | ||
@@ -292,3 +297,3 @@ this.assert( | ||
exports.version = '0.0.1'; | ||
exports.version = '0.0.2'; | ||
@@ -316,3 +321,3 @@ exports.expect = function (val, message) { | ||
this.expected = options.expected; | ||
this.operator = options.operator; | ||
this.operator = options.operator || options.stackStartFunction.name; | ||
var stackStartFunction = options.stackStartFunction; | ||
@@ -334,3 +339,3 @@ | ||
AssertionError.prototype.toString = function() { | ||
return this.summary() + '\n' + this.details(); | ||
return this.summary(); | ||
}; | ||
@@ -337,0 +342,0 @@ |
var exports = module.exports = {}; | ||
exports.version = '0.0.1'; | ||
exports.version = '0.0.2'; | ||
@@ -6,0 +6,0 @@ exports.expect = function (val, message) { |
@@ -10,3 +10,3 @@ | ||
this.expected = options.expected; | ||
this.operator = options.operator; | ||
this.operator = options.operator || options.stackStartFunction.name; | ||
var stackStartFunction = options.stackStartFunction; | ||
@@ -28,3 +28,3 @@ | ||
AssertionError.prototype.toString = function() { | ||
return this.summary() + '\n' + this.details(); | ||
return this.summary(); | ||
}; |
@@ -5,3 +5,3 @@ { | ||
"description": "Assertion framework for node.js and the browser.", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
23269
720