Release 0.3.3

This commit is contained in:
Jake Luer 2012-02-12 18:07:08 -05:00
parent 5a18f7bb18
commit de582d61d4
6 changed files with 110 additions and 54 deletions

View file

@ -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
==================

53
chai.js
View file

@ -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');

View file

@ -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');

View file

@ -182,7 +182,8 @@ _gaq.push(['_trackPageview']);
<pre class="source prettyprint"><code>Object.defineProperty(Assertion.prototype, 'to',
{ get: function () {
return this;
}
},
configurable: true
});</code>
</pre>
</div>
@ -203,7 +204,8 @@ _gaq.push(['_trackPageview']);
<pre class="source prettyprint"><code>Object.defineProperty(Assertion.prototype, 'be',
{ get: function () {
return this;
}
},
configurable: true
});</code>
</pre>
</div>
@ -225,7 +227,8 @@ _gaq.push(['_trackPageview']);
{ get: function () {
this.tense = 'past';
return this;
}
},
configurable: true
});</code>
</pre>
</div>
@ -246,7 +249,8 @@ _gaq.push(['_trackPageview']);
<pre class="source prettyprint"><code>Object.defineProperty(Assertion.prototype, 'an',
{ get: function () {
return this;
}
},
configurable: true
});</code>
</pre>
</div>
@ -267,7 +271,8 @@ _gaq.push(['_trackPageview']);
<pre class="source prettyprint"><code>Object.defineProperty(Assertion.prototype, 'is',
{ get: function () {
return this;
}
},
configurable: true
});</code>
</pre>
</div>
@ -288,7 +293,8 @@ _gaq.push(['_trackPageview']);
<pre class="source prettyprint"><code>Object.defineProperty(Assertion.prototype, 'and',
{ get: function () {
return this;
}
},
configurable: true
});</code>
</pre>
</div>
@ -309,7 +315,8 @@ _gaq.push(['_trackPageview']);
<pre class="source prettyprint"><code>Object.defineProperty(Assertion.prototype, 'have',
{ get: function () {
return this;
}
},
configurable: true
});</code>
</pre>
</div>
@ -330,7 +337,8 @@ _gaq.push(['_trackPageview']);
<pre class="source prettyprint"><code>Object.defineProperty(Assertion.prototype, 'with',
{ get: function () {
return this;
}
},
configurable: true
});</code>
</pre>
</div>
@ -352,7 +360,8 @@ _gaq.push(['_trackPageview']);
{ get: function () {
this.negate = true;
return this;
}
},
configurable: true
});</code>
</pre>
</div>
@ -384,7 +393,8 @@ _gaq.push(['_trackPageview']);
, 'expected ' + this.inspect + ' to be falsey');
return this;
}
},
configurable: true
});</code>
</pre>
</div>
@ -410,7 +420,8 @@ _gaq.push(['_trackPageview']);
, 'expected ' + this.inspect + ' to be false');
return this;
}
},
configurable: true
});</code>
</pre>
</div>
@ -436,7 +447,8 @@ _gaq.push(['_trackPageview']);
, 'expected ' + this.inspect + ' to be true');
return this;
}
},
configurable: true
});</code>
</pre>
</div>
@ -468,7 +480,8 @@ _gaq.push(['_trackPageview']);
, 'expected ' + this.inspect + ' to not exist');
return this;
}
},
configurable: true
});</code>
</pre>
</div>
@ -499,7 +512,8 @@ _gaq.push(['_trackPageview']);
, 'expected ' + this.inspect + ' not to be empty');
return this;
}
},
configurable: true
});</code>
</pre>
</div>
@ -530,7 +544,8 @@ _gaq.push(['_trackPageview']);
, 'expected ' + this.inspect + ' to not be arguments');
return this;
}
},
configurable: true
});</code>
</pre>
</div>
@ -1021,7 +1036,8 @@ _gaq.push(['_trackPageview']);
{ get: function () {
this.contains = true;
return this;
}
},
configurable: true
});</code>
</pre>
</div>

View file

@ -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');

View file

@ -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"