Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed reserved names for old browsers in Assertion

  • Loading branch information...
commit d90f152ebcc6f42117cb9d39928b21f8f25805ac 1 parent fc188fa
Juliusz Gonera jgonera authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 lib/assertion.js
12 lib/assertion.js
View
@@ -581,13 +581,13 @@ Assertion.prototype.a = function (type) {
*
* expect(Chai).to.be.an.instanceOf(Tea);
*
- * @name instanceof
+ * @name instanceOf
* @param {Constructor}
* @alias instanceOf
* @api public
*/
-Assertion.prototype.instanceof = function (constructor) {
+Assertion.prototype.instanceOf = function (constructor) {
var name = constructor.name;
this.assert(
this.obj instanceof constructor
@@ -868,7 +868,7 @@ Assertion.prototype.keys = function(keys) {
* @api public
*/
-Assertion.prototype.throw = function (constructor, msg) {
+Assertion.prototype.Throw = function (constructor, msg) {
new Assertion(this.obj).is.a('function');
var thrown = false;
@@ -1010,6 +1010,6 @@ Assertion.prototype.closeTo = function (expected, delta) {
('ownProperty', 'haveOwnProperty')
('above', 'greaterThan')
('below', 'lessThan')
-('throw', 'throws')
-('throw', 'Throw') // for troublesome browsers
-('instanceof', 'instanceOf');
+('Throw', 'throws')
+('Throw', 'throw') // for troublesome browsers
+('instanceOf', 'instanceof');
Please sign in to comment.
Something went wrong with that request. Please try again.