Update the compiled browser version.

This commit is contained in:
Veselin Todorov 2012-02-24 22:37:14 +02:00
parent 92b8ffe589
commit f8b840fcd4

23
chai.js
View file

@ -929,7 +929,28 @@ Assertion.prototype.respondTo = function (method) {
this.assert(
'function' === typeof context
, 'expected ' + this.inspect + ' to respond to ' + inspect(method)
, 'expected ' + this.inspect + ' to respond to ' + inspect(method));
, 'expected ' + this.inspect + ' to not respond to ' + inspect(method));
return this;
};
/**
* # .satisfy(method)
*
* Assert that passes a truth test.
*
* expect(1).to.satisfy(function(num) { num > 0; });
*
* @name satisfy
* @param {Function} matcher
* @api public
*/
Assertion.prototype.satisfy = function (matcher) {
this.assert(
matcher(this.obj)
, 'expected ' + this.inspect + ' to satisfy ' + inspect(matcher)
, 'expected ' + this.inspect + ' to not satisfy' + inspect(matcher));
return this;
};