Skip to content

Commit

Permalink
Revert "add .type for eql()s assert"
Browse files Browse the repository at this point in the history
This reverts commit 0884502.
  • Loading branch information
tj committed Sep 19, 2012
1 parent fe210b7 commit dd81e18
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/should.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,10 @@ Assertion.prototype = {
* @param {String} msg
* @param {String} negatedMsg
* @param {Object} expected
* @param {String} type
* @api private
*/

assert: function(expr, msg, negatedMsg, expected, type){
assert: function(expr, msg, negatedMsg, expected){
var msg = this.negate ? negatedMsg : msg
, ok = this.negate ? !expr : expr
, obj = this.obj;
Expand All @@ -124,7 +123,6 @@ Assertion.prototype = {
, expected: expected
, stackStartFunction: this.assert
, negated: this.negate
, type: type
});
},

Expand Down Expand Up @@ -284,8 +282,7 @@ Assertion.prototype = {
eql(val, this.obj)
, function(){ return 'expected ' + this.inspect + ' to equal ' + i(val) + (desc ? " | " + desc : "") }
, function(){ return 'expected ' + this.inspect + ' to not equal ' + i(val) + (desc ? " | " + desc : "") }
, val
, 'equal');
, val);
return this;
},

Expand Down

0 comments on commit dd81e18

Please sign in to comment.