From de582d61d418ea8f5bc5b722b695e5115f186f26 Mon Sep 17 00:00:00 2001 From: Jake Luer Date: Sun, 12 Feb 2012 18:07:08 -0500 Subject: [PATCH] Release 0.3.3 --- History.md | 6 +++++ chai.js | 53 ++++++++++++++++++++++++++------------- docs/out/chai.js | 53 ++++++++++++++++++++++++++------------- docs/out/code/expect.html | 48 +++++++++++++++++++++++------------ lib/chai.js | 2 +- package.json | 2 +- 6 files changed, 110 insertions(+), 54 deletions(-) diff --git a/History.md b/History.md index beb7982..b13b8df 100644 --- a/History.md +++ b/History.md @@ -1,4 +1,10 @@ +0.3.3 / 2012-02-12 +================== + + * Merge pull request #14 from jfirebaugh/configurable_properties + * Make Assertion.prototype properties configurable + 0.3.2 / 2012-02-10 ================== diff --git a/chai.js b/chai.js index d534f16..d9d05be 100644 --- a/chai.js +++ b/chai.js @@ -151,7 +151,8 @@ Assertion.prototype.assert = function (expr, msg, negateMsg) { Object.defineProperty(Assertion.prototype, 'inspect', { get: function () { return inspect(this.obj); - } + }, + configurable: true }); /** @@ -166,7 +167,8 @@ Object.defineProperty(Assertion.prototype, 'inspect', Object.defineProperty(Assertion.prototype, 'to', { get: function () { return this; - } + }, + configurable: true }); /** @@ -181,7 +183,8 @@ Object.defineProperty(Assertion.prototype, 'to', Object.defineProperty(Assertion.prototype, 'be', { get: function () { return this; - } + }, + configurable: true }); /** @@ -198,7 +201,8 @@ Object.defineProperty(Assertion.prototype, 'been', { get: function () { this.tense = 'past'; return this; - } + }, + configurable: true }); /** @@ -213,7 +217,8 @@ Object.defineProperty(Assertion.prototype, 'been', Object.defineProperty(Assertion.prototype, 'an', { get: function () { return this; - } + }, + configurable: true }); /** * # is @@ -227,7 +232,8 @@ Object.defineProperty(Assertion.prototype, 'an', Object.defineProperty(Assertion.prototype, 'is', { get: function () { return this; - } + }, + configurable: true }); /** @@ -242,7 +248,8 @@ Object.defineProperty(Assertion.prototype, 'is', Object.defineProperty(Assertion.prototype, 'and', { get: function () { return this; - } + }, + configurable: true }); /** @@ -257,7 +264,8 @@ Object.defineProperty(Assertion.prototype, 'and', Object.defineProperty(Assertion.prototype, 'have', { get: function () { return this; - } + }, + configurable: true }); /** @@ -272,7 +280,8 @@ Object.defineProperty(Assertion.prototype, 'have', Object.defineProperty(Assertion.prototype, 'with', { get: function () { return this; - } + }, + configurable: true }); /** @@ -288,7 +297,8 @@ Object.defineProperty(Assertion.prototype, 'not', { get: function () { this.negate = true; return this; - } + }, + configurable: true }); /** @@ -313,7 +323,8 @@ Object.defineProperty(Assertion.prototype, 'ok', , 'expected ' + this.inspect + ' to be falsey'); return this; - } + }, + configurable: true }); /** @@ -333,7 +344,8 @@ Object.defineProperty(Assertion.prototype, 'true', , 'expected ' + this.inspect + ' to be false'); return this; - } + }, + configurable: true }); /** @@ -353,7 +365,8 @@ Object.defineProperty(Assertion.prototype, 'false', , 'expected ' + this.inspect + ' to be true'); return this; - } + }, + configurable: true }); /** @@ -378,7 +391,8 @@ Object.defineProperty(Assertion.prototype, 'exist', , 'expected ' + this.inspect + ' to not exist'); return this; - } + }, + configurable: true }); /** @@ -402,7 +416,8 @@ Object.defineProperty(Assertion.prototype, 'empty', , 'expected ' + this.inspect + ' not to be empty'); return this; - } + }, + configurable: true }); /** @@ -426,7 +441,8 @@ Object.defineProperty(Assertion.prototype, 'arguments', , 'expected ' + this.inspect + ' to not be arguments'); return this; - } + }, + configurable: true }); /** @@ -751,7 +767,8 @@ Object.defineProperty(Assertion.prototype, 'contain', { get: function () { this.contains = true; return this; - } + }, + configurable: true }); /** @@ -897,7 +914,7 @@ require.register("chai.js", function(module, exports, require){ var used = []; var exports = module.exports = {}; -exports.version = '0.3.2'; +exports.version = '0.3.3'; exports.Assertion = require('./assertion'); exports.AssertionError = require('./error'); diff --git a/docs/out/chai.js b/docs/out/chai.js index d534f16..d9d05be 100644 --- a/docs/out/chai.js +++ b/docs/out/chai.js @@ -151,7 +151,8 @@ Assertion.prototype.assert = function (expr, msg, negateMsg) { Object.defineProperty(Assertion.prototype, 'inspect', { get: function () { return inspect(this.obj); - } + }, + configurable: true }); /** @@ -166,7 +167,8 @@ Object.defineProperty(Assertion.prototype, 'inspect', Object.defineProperty(Assertion.prototype, 'to', { get: function () { return this; - } + }, + configurable: true }); /** @@ -181,7 +183,8 @@ Object.defineProperty(Assertion.prototype, 'to', Object.defineProperty(Assertion.prototype, 'be', { get: function () { return this; - } + }, + configurable: true }); /** @@ -198,7 +201,8 @@ Object.defineProperty(Assertion.prototype, 'been', { get: function () { this.tense = 'past'; return this; - } + }, + configurable: true }); /** @@ -213,7 +217,8 @@ Object.defineProperty(Assertion.prototype, 'been', Object.defineProperty(Assertion.prototype, 'an', { get: function () { return this; - } + }, + configurable: true }); /** * # is @@ -227,7 +232,8 @@ Object.defineProperty(Assertion.prototype, 'an', Object.defineProperty(Assertion.prototype, 'is', { get: function () { return this; - } + }, + configurable: true }); /** @@ -242,7 +248,8 @@ Object.defineProperty(Assertion.prototype, 'is', Object.defineProperty(Assertion.prototype, 'and', { get: function () { return this; - } + }, + configurable: true }); /** @@ -257,7 +264,8 @@ Object.defineProperty(Assertion.prototype, 'and', Object.defineProperty(Assertion.prototype, 'have', { get: function () { return this; - } + }, + configurable: true }); /** @@ -272,7 +280,8 @@ Object.defineProperty(Assertion.prototype, 'have', Object.defineProperty(Assertion.prototype, 'with', { get: function () { return this; - } + }, + configurable: true }); /** @@ -288,7 +297,8 @@ Object.defineProperty(Assertion.prototype, 'not', { get: function () { this.negate = true; return this; - } + }, + configurable: true }); /** @@ -313,7 +323,8 @@ Object.defineProperty(Assertion.prototype, 'ok', , 'expected ' + this.inspect + ' to be falsey'); return this; - } + }, + configurable: true }); /** @@ -333,7 +344,8 @@ Object.defineProperty(Assertion.prototype, 'true', , 'expected ' + this.inspect + ' to be false'); return this; - } + }, + configurable: true }); /** @@ -353,7 +365,8 @@ Object.defineProperty(Assertion.prototype, 'false', , 'expected ' + this.inspect + ' to be true'); return this; - } + }, + configurable: true }); /** @@ -378,7 +391,8 @@ Object.defineProperty(Assertion.prototype, 'exist', , 'expected ' + this.inspect + ' to not exist'); return this; - } + }, + configurable: true }); /** @@ -402,7 +416,8 @@ Object.defineProperty(Assertion.prototype, 'empty', , 'expected ' + this.inspect + ' not to be empty'); return this; - } + }, + configurable: true }); /** @@ -426,7 +441,8 @@ Object.defineProperty(Assertion.prototype, 'arguments', , 'expected ' + this.inspect + ' to not be arguments'); return this; - } + }, + configurable: true }); /** @@ -751,7 +767,8 @@ Object.defineProperty(Assertion.prototype, 'contain', { get: function () { this.contains = true; return this; - } + }, + configurable: true }); /** @@ -897,7 +914,7 @@ require.register("chai.js", function(module, exports, require){ var used = []; var exports = module.exports = {}; -exports.version = '0.3.2'; +exports.version = '0.3.3'; exports.Assertion = require('./assertion'); exports.AssertionError = require('./error'); diff --git a/docs/out/code/expect.html b/docs/out/code/expect.html index fa01966..665c029 100644 --- a/docs/out/code/expect.html +++ b/docs/out/code/expect.html @@ -182,7 +182,8 @@ _gaq.push(['_trackPageview']);
Object.defineProperty(Assertion.prototype, 'to',
   { get: function () {
       return this;
-    }
+    },
+    configurable: true
 });
             
@@ -203,7 +204,8 @@ _gaq.push(['_trackPageview']);
Object.defineProperty(Assertion.prototype, 'be',
   { get: function () {
       return this;
-    }
+    },
+    configurable: true
 });
             
@@ -225,7 +227,8 @@ _gaq.push(['_trackPageview']); { get: function () { this.tense = 'past'; return this; - } + }, + configurable: true }); @@ -246,7 +249,8 @@ _gaq.push(['_trackPageview']);
Object.defineProperty(Assertion.prototype, 'an',
   { get: function () {
       return this;
-    }
+    },
+    configurable: true
 });
             
@@ -267,7 +271,8 @@ _gaq.push(['_trackPageview']);
Object.defineProperty(Assertion.prototype, 'is',
   { get: function () {
       return this;
-    }
+    },
+    configurable: true
 });
             
@@ -288,7 +293,8 @@ _gaq.push(['_trackPageview']);
Object.defineProperty(Assertion.prototype, 'and',
   { get: function () {
       return this;
-    }
+    },
+    configurable: true
 });
             
@@ -309,7 +315,8 @@ _gaq.push(['_trackPageview']);
Object.defineProperty(Assertion.prototype, 'have',
   { get: function () {
       return this;
-    }
+    },
+    configurable: true
 });
             
@@ -330,7 +337,8 @@ _gaq.push(['_trackPageview']);
Object.defineProperty(Assertion.prototype, 'with',
   { get: function () {
       return this;
-    }
+    },
+    configurable: true
 });
             
@@ -352,7 +360,8 @@ _gaq.push(['_trackPageview']); { get: function () { this.negate = true; return this; - } + }, + configurable: true }); @@ -384,7 +393,8 @@ _gaq.push(['_trackPageview']); , 'expected ' + this.inspect + ' to be falsey'); return this; - } + }, + configurable: true }); @@ -410,7 +420,8 @@ _gaq.push(['_trackPageview']); , 'expected ' + this.inspect + ' to be false'); return this; - } + }, + configurable: true }); @@ -436,7 +447,8 @@ _gaq.push(['_trackPageview']); , 'expected ' + this.inspect + ' to be true'); return this; - } + }, + configurable: true }); @@ -468,7 +480,8 @@ _gaq.push(['_trackPageview']); , 'expected ' + this.inspect + ' to not exist'); return this; - } + }, + configurable: true }); @@ -499,7 +512,8 @@ _gaq.push(['_trackPageview']); , 'expected ' + this.inspect + ' not to be empty'); return this; - } + }, + configurable: true }); @@ -530,7 +544,8 @@ _gaq.push(['_trackPageview']); , 'expected ' + this.inspect + ' to not be arguments'); return this; - } + }, + configurable: true }); @@ -1021,7 +1036,8 @@ _gaq.push(['_trackPageview']); { get: function () { this.contains = true; return this; - } + }, + configurable: true }); diff --git a/lib/chai.js b/lib/chai.js index 75d8326..c30d6a6 100644 --- a/lib/chai.js +++ b/lib/chai.js @@ -7,7 +7,7 @@ var used = []; var exports = module.exports = {}; -exports.version = '0.3.2'; +exports.version = '0.3.3'; exports.Assertion = require('./assertion'); exports.AssertionError = require('./error'); diff --git a/package.json b/package.json index 85c073d..cd8b185 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "name": "chai", "description": "BDD/TDD assertion library for node.js and the browser. Test framework agnostic.", "keywords": [ "test", "assertion", "assert", "testing" ], - "version": "0.3.2", + "version": "0.3.3", "repository": { "type": "git", "url": "https://github.com/logicalparadox/chai"