Skip to content

Commit 09e17b9

Browse files
committed
Merge pull request #375 from chaijs/release-2.1.0
Release v2.1.0
2 parents 45f9e6a + ee5d666 commit 09e17b9

8 files changed

+102
-31
lines changed

History.md

+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
2.1.0 / 2015-02-23
2+
==================
3+
4+
* Merge pull request #374 from jmm/v2.0.1
5+
* Increment version to 2.0.1.
6+
* Merge pull request #365 from chaijs/fix-travis
7+
* Fix travis.yml deploy
8+
* Merge pull request #356 from Soviut/master
9+
* documented fail methods for expect and should interfaces
10+
* fail method added directly to expect
11+
112
2.0.0 / 2015-02-09
213
==================
314

README.md

+27-25
Original file line numberDiff line numberDiff line change
@@ -25,43 +25,44 @@ Chai offers a robust Plugin architecture for extending Chai's assertions and int
2525
### Contributors
2626

2727
project : chai
28-
repo age : 3 years, 2 months
29-
active : 220 days
30-
commits : 845
28+
repo age : 3 years, 3 months
29+
active : 224 days
30+
commits : 859
3131
files : 59
3232
authors :
33-
553 Jake Luer 65.4%
34-
79 Veselin Todorov 9.3%
35-
43 Domenic Denicola 5.1%
36-
23 Keith Cirkel 2.7%
37-
14 Joshua Perry 1.7%
33+
554 Jake Luer 64.5%
34+
79 Veselin Todorov 9.2%
35+
43 Domenic Denicola 5.0%
36+
29 Keith Cirkel 3.4%
37+
14 Joshua Perry 1.6%
3838
8 Chris Polis 0.9%
39+
6 Ian Zamojc 0.7%
3940
6 Ruben Verborgh 0.7%
40-
5 Scott Nonnenberg 0.6%
41-
5 George Kats 0.6%
4241
5 Juliusz Gonera 0.6%
43-
5 leider 0.6%
42+
5 George Kats 0.6%
4443
5 Jo Liss 0.6%
44+
5 Scott Nonnenberg 0.6%
45+
5 leider 0.6%
46+
4 charlierudolph 0.5%
4547
4 Chris Jones 0.5%
48+
4 Max Edmands 0.5%
4649
4 David da Silva 0.5%
47-
4 Nick Heiner 0.5%
48-
4 John Firebaugh 0.5%
4950
4 Veselin 0.5%
50-
4 Max Edmands 0.5%
51-
4 charlierudolph 0.5%
5251
4 josher19 0.5%
53-
3 Jake Rosoman 0.4%
54-
3 Jeff Barczewski 0.4%
55-
3 Andrei Neculau 0.4%
56-
3 Duncan Beevers 0.4%
57-
3 Jason Karns 0.4%
58-
3 Ryunosuke SATO 0.4%
59-
2 Gregg Lind 0.2%
60-
2 Teddy Cross 0.2%
61-
2 Bartvds 0.2%
52+
4 John Firebaugh 0.5%
53+
4 Nick Heiner 0.5%
54+
3 Andrei Neculau 0.3%
55+
3 Duncan Beevers 0.3%
56+
3 Ryunosuke SATO 0.3%
57+
3 Jake Rosoman 0.3%
58+
3 Jason Karns 0.3%
59+
3 Jeff Barczewski 0.3%
6260
2 Jakub Nešetřil 0.2%
63-
2 Edwin Shao 0.2%
61+
2 Teddy Cross 0.2%
6462
2 Roman Masek 0.2%
63+
2 Gregg Lind 0.2%
64+
2 Edwin Shao 0.2%
65+
2 Bartvds 0.2%
6566
1 toastynerd 0.1%
6667
1 Anand Patil 0.1%
6768
1 Benjamin Horsleben 0.1%
@@ -75,6 +76,7 @@ Chai offers a robust Plugin architecture for extending Chai's assertions and int
7576
1 Danilo Vaz 0.1%
7677
1 Dido Arellano 0.1%
7778
1 Jeff Welch 0.1%
79+
1 Jesse McCarthy 0.1%
7880
1 Julien Wajsberg 0.1%
7981
1 Kilian Ciuffolo 0.1%
8082
1 Luís Cardoso 0.1%

ReleaseNotes.md

+15
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# Release Notes
22

3+
## 2.1.0 / 2015-02-23
4+
5+
Small release; fixes an issue where the Chai lib was incorrectly reporting the
6+
version number.
7+
8+
Adds new `should.fail()` and `expect.fail()` methods, which are convinience
9+
methods to throw Assertion Errors.
10+
11+
### Community Contributions
12+
13+
#### Code Features & Fixes
14+
15+
* [#356](https://github.com/chaijs/chai/pull/356) Add should.fail(), expect.fail(). By [@Soviut](https://github.com/Soviut)
16+
* [#374](https://github.com/chaijs/chai/pull/374) Increment version. By [@jmm](https://github.com/jmm)
17+
318
## 2.0.0 / 2015-02-09
419

520
Unfortunately with 1.10.0 - compatibility broke with older versions because of

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "chai",
3-
"version": "2.0.1",
3+
"version": "2.1.0",
44
"description": "BDD/TDD assertion library for node.js and the browser. Test framework agnostic.",
55
"license": "MIT",
66
"keywords": [

chai.js

+45-2
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ var used = []
678678
* Chai version
679679
*/
680680

681-
exports.version = '1.10.0';
681+
exports.version = '2.1.0';
682682

683683
/*!
684684
* Assertion Error
@@ -3739,8 +3739,29 @@ module.exports = function (chai, util) {
37393739
chai.expect = function (val, message) {
37403740
return new chai.Assertion(val, message);
37413741
};
3742-
};
37433742

3743+
/**
3744+
* ### .fail(actual, expected, [message], [operator])
3745+
*
3746+
* Throw a failure.
3747+
*
3748+
* @name fail
3749+
* @param {Mixed} actual
3750+
* @param {Mixed} expected
3751+
* @param {String} message
3752+
* @param {String} operator
3753+
* @api public
3754+
*/
3755+
3756+
chai.expect.fail = function (actual, expected, message, operator) {
3757+
message = message || 'expect.fail()';
3758+
throw new chai.AssertionError(message, {
3759+
actual: actual
3760+
, expected: expected
3761+
, operator: operator
3762+
}, chai.expect.fail);
3763+
};
3764+
};
37443765

37453766
});
37463767

@@ -3787,6 +3808,28 @@ module.exports = function (chai, util) {
37873808

37883809
var should = {};
37893810

3811+
/**
3812+
* ### .fail(actual, expected, [message], [operator])
3813+
*
3814+
* Throw a failure.
3815+
*
3816+
* @name fail
3817+
* @param {Mixed} actual
3818+
* @param {Mixed} expected
3819+
* @param {String} message
3820+
* @param {String} operator
3821+
* @api public
3822+
*/
3823+
3824+
should.fail = function (actual, expected, message, operator) {
3825+
message = message || 'should.fail()';
3826+
throw new chai.AssertionError(message, {
3827+
actual: actual
3828+
, expected: expected
3829+
, operator: operator
3830+
}, should.fail);
3831+
};
3832+
37903833
should.equal = function (val1, val2, msg) {
37913834
new Assertion(val1, msg).to.equal(val2);
37923835
};

component.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "chai"
33
, "repo": "chaijs/chai"
4-
, "version": "2.0.1"
4+
, "version": "2.1.0"
55
, "description": "BDD/TDD assertion library for node.js and the browser. Test framework agnostic."
66
, "license": "MIT"
77
, "keywords": [

lib/chai.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var used = []
1111
* Chai version
1212
*/
1313

14-
exports.version = '2.0.1';
14+
exports.version = '2.1.0';
1515

1616
/*!
1717
* Assertion Error

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"Veselin Todorov <[email protected]>",
1818
"John Firebaugh <[email protected]>"
1919
],
20-
"version": "2.0.1",
20+
"version": "2.1.0",
2121
"repository": {
2222
"type": "git",
2323
"url": "https://github.com/chaijs/chai"

0 commit comments

Comments
 (0)