Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixed reserved names for old browsers in Assertion
  • Loading branch information
jgonera committed Apr 20, 2012
1 parent fc188fa commit d90f152
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/assertion.js
Expand Up @@ -581,13 +581,13 @@ Assertion.prototype.a = function (type) {
* *
* expect(Chai).to.be.an.instanceOf(Tea); * expect(Chai).to.be.an.instanceOf(Tea);
* *
* @name instanceof * @name instanceOf
* @param {Constructor} * @param {Constructor}
* @alias instanceOf * @alias instanceOf
* @api public * @api public
*/ */


Assertion.prototype.instanceof = function (constructor) { Assertion.prototype.instanceOf = function (constructor) {
var name = constructor.name; var name = constructor.name;
this.assert( this.assert(
this.obj instanceof constructor this.obj instanceof constructor
Expand Down Expand Up @@ -868,7 +868,7 @@ Assertion.prototype.keys = function(keys) {
* @api public * @api public
*/ */


Assertion.prototype.throw = function (constructor, msg) { Assertion.prototype.Throw = function (constructor, msg) {
new Assertion(this.obj).is.a('function'); new Assertion(this.obj).is.a('function');


var thrown = false; var thrown = false;
Expand Down Expand Up @@ -1010,6 +1010,6 @@ Assertion.prototype.closeTo = function (expected, delta) {
('ownProperty', 'haveOwnProperty') ('ownProperty', 'haveOwnProperty')
('above', 'greaterThan') ('above', 'greaterThan')
('below', 'lessThan') ('below', 'lessThan')
('throw', 'throws') ('Throw', 'throws')
('throw', 'Throw') // for troublesome browsers ('Throw', 'throw') // for troublesome browsers
('instanceof', 'instanceOf'); ('instanceOf', 'instanceof');

0 comments on commit d90f152

Please sign in to comment.