chai 2.3.0 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CONTRIBUTING.md +21 -17
- package/History.md +7 -0
- package/README.md +35 -84
- package/ReleaseNotes.md +7 -0
- package/bower.json +0 -1
- package/chai.js +3928 -3623
- package/karma.conf.js +1 -1
- package/lib/chai/assertion.js +2 -2
- package/lib/chai/core/assertions.js +192 -32
- package/lib/chai/interface/assert.js +286 -37
- package/lib/chai/utils/addProperty.js +8 -1
- package/lib/chai/utils/getPathInfo.js +1 -1
- package/lib/chai/utils/getProperties.js +2 -2
- package/lib/chai/utils/hasProperty.js +1 -1
- package/lib/chai/utils/index.js +1 -1
- package/lib/chai.js +1 -1
- package/package.json +13 -11
- package/lib/chai/utils/type.js +0 -45
package/CONTRIBUTING.md
CHANGED
|
@@ -140,26 +140,30 @@ git push origin <topic-branch-name>
|
|
|
140
140
|
<a name="releasing"></a>
|
|
141
141
|
## Releasing
|
|
142
142
|
|
|
143
|
-
Releases can be prepared by
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
143
|
+
Releases can be **prepared** by anyone with access to the code.
|
|
144
|
+
|
|
145
|
+
Simply run `make release-major`, `make release-minor`, or `make-release-patch`
|
|
146
|
+
and it will automatically do the following:
|
|
147
|
+
|
|
148
|
+
- Build chai.js
|
|
149
|
+
- Bump the version numbers accross the project
|
|
150
|
+
- Make a commit within git
|
|
151
|
+
|
|
152
|
+
All you need to do is push the commit up and make a pull request, one of the core contributors will merge it and publish a release.
|
|
153
|
+
|
|
154
|
+
### Publishing a Release
|
|
155
|
+
|
|
156
|
+
Anyone who is a core contributor (see the [Core Contributors Heading in the Readme](https://github.com/chaijs/chai#core-contributors)) can publish a release:
|
|
157
|
+
|
|
158
|
+
1. Go to te [Releases page on Github](https://github.com/chaijs/chai/releases)
|
|
159
|
+
2. Hit "Draft a new release" (if you can't see this, you're not a core contributor!)
|
|
160
|
+
3. Write human-friendly Release Notes based on changelog.
|
|
161
|
+
- The release title is "x.x.x / YYYY-MM-DD" (where x.x.x is the version number)
|
|
157
162
|
- If breaking changes, write migration tutorial(s) and reasoning.
|
|
158
163
|
- Callouts for community contributions (PRs) with links to PR and contributing user.
|
|
159
164
|
- Callouts for other fixes made by core contributors with links to issue.
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
- All tagged releases are published to NPM.
|
|
165
|
+
4. Hit "Save Draft" and get other core contributors to check your work, or alternatively hit "Publish release"
|
|
166
|
+
5. That's it!
|
|
163
167
|
|
|
164
168
|
<a name="support"></a>
|
|
165
169
|
## Support
|
package/History.md
CHANGED
package/README.md
CHANGED
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
[](http://chaijs.com)
|
|
2
2
|
|
|
3
|
+
[](#license)<br>
|
|
4
|
+
[](https://github.com/chaijs/chai/releases)
|
|
5
|
+
[](https://travis-ci.org/chaijs/chai)
|
|
6
|
+
[](https://coveralls.io/r/chaijs/chai)<br>
|
|
7
|
+
[](https://www.npmjs.com/packages/chai)
|
|
8
|
+
[](https://www.npmjs.com/packages/chai)
|
|
9
|
+
[](https://david-dm.org/chaijs/chai)
|
|
10
|
+
|
|
11
|
+
[](https://saucelabs.com/u/chaijs)
|
|
12
|
+
|
|
13
|
+
|
|
3
14
|
Chai is a BDD / TDD assertion library for [node](http://nodejs.org) and the browser that
|
|
4
15
|
can be delightfully paired with any javascript testing framework.
|
|
5
16
|
|
|
6
17
|
For more information or to download plugins, view the [documentation](http://chaijs.com).
|
|
7
18
|
|
|
8
|
-
[](https://travis-ci.org/chaijs/chai)
|
|
9
|
-
|
|
10
|
-
[](https://saucelabs.com/u/chaijs)
|
|
11
|
-
|
|
12
19
|
### Plugins
|
|
13
20
|
|
|
14
21
|
Chai offers a robust Plugin architecture for extending Chai's assertions and interfaces.
|
|
@@ -21,89 +28,33 @@ Chai offers a robust Plugin architecture for extending Chai's assertions and int
|
|
|
21
28
|
|
|
22
29
|
- [chaijs / assertion-error](https://github.com/chaijs/assertion-error): Custom `Error` constructor thrown upon an assertion failing.
|
|
23
30
|
- [chaijs / deep-eql](https://github.com/chaijs/deep-eql): Improved deep equality testing for Node.js and the browser.
|
|
31
|
+
- [chaijs / type-detect](https://github.com/chaijs/type-detect): Improved typeof detection for node.js and the browser.
|
|
32
|
+
|
|
33
|
+
### Contributing
|
|
34
|
+
|
|
35
|
+
Thank you very much for considering to contribute!
|
|
36
|
+
|
|
37
|
+
Here are a few issues other contributors frequently ran into when opening pull requests:
|
|
38
|
+
|
|
39
|
+
- Please do not commit changes to the `chai.js` build. We do it once per release.
|
|
40
|
+
- Before pushing your commits, please make sure you [rebase](https://github.com/chaijs/chai/blob/master/CONTRIBUTING.md#pull-requests) them.
|
|
41
|
+
|
|
42
|
+
We also strongly encourage you to read our detailed [contribution guidelines](https://github.com/chaijs/chai/blob/master/CONTRIBUTING.md).
|
|
24
43
|
|
|
25
44
|
### Contributors
|
|
26
45
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
6 Ruben Verborgh 0.7%
|
|
40
|
-
6 Ian Zamojc 0.7%
|
|
41
|
-
5 George Kats 0.6%
|
|
42
|
-
5 leider 0.6%
|
|
43
|
-
5 Scott Nonnenberg 0.6%
|
|
44
|
-
5 Juliusz Gonera 0.6%
|
|
45
|
-
5 Jo Liss 0.6%
|
|
46
|
-
4 Jérémie Astori 0.4%
|
|
47
|
-
4 John Firebaugh 0.4%
|
|
48
|
-
4 charlierudolph 0.4%
|
|
49
|
-
4 Veselin 0.4%
|
|
50
|
-
4 Chris Jones 0.4%
|
|
51
|
-
4 Nick Heiner 0.4%
|
|
52
|
-
4 Max Edmands 0.4%
|
|
53
|
-
4 David da Silva 0.4%
|
|
54
|
-
4 Kaito Udagawa 0.4%
|
|
55
|
-
4 josher19 0.4%
|
|
56
|
-
3 Jordan Harband 0.3%
|
|
57
|
-
3 Ryunosuke SATO 0.3%
|
|
58
|
-
3 Jake Rosoman 0.3%
|
|
59
|
-
3 Duncan Beevers 0.3%
|
|
60
|
-
3 Jason Karns 0.3%
|
|
61
|
-
3 Jeff Barczewski 0.3%
|
|
62
|
-
3 Andrei Neculau 0.3%
|
|
63
|
-
2 eldritch fossicker 0.2%
|
|
64
|
-
2 Bartvds 0.2%
|
|
65
|
-
2 Edwin Shao 0.2%
|
|
66
|
-
2 Gregg Lind 0.2%
|
|
67
|
-
2 Jakub Nešetřil 0.2%
|
|
68
|
-
2 Roman Masek 0.2%
|
|
69
|
-
2 Teddy Cross 0.2%
|
|
70
|
-
1 Jesse McCarthy 0.1%
|
|
71
|
-
1 Doug Neiner 0.1%
|
|
72
|
-
1 Dido Arellano 0.1%
|
|
73
|
-
1 Kilian Ciuffolo 0.1%
|
|
74
|
-
1 Luís Cardoso 0.1%
|
|
75
|
-
1 Martin Middel 0.1%
|
|
76
|
-
1 Mathias Schreck 0.1%
|
|
77
|
-
1 Danilo Vaz 0.1%
|
|
78
|
-
1 Michael Lange 0.1%
|
|
79
|
-
1 Mitchell Johnson 0.1%
|
|
80
|
-
1 DD 0.1%
|
|
81
|
-
1 Niklas Närhinen 0.1%
|
|
82
|
-
1 Paul Miller 0.1%
|
|
83
|
-
1 Refael Ackermann 0.1%
|
|
84
|
-
1 shinnn 0.1%
|
|
85
|
-
1 Chun-Yi 0.1%
|
|
86
|
-
1 Christopher Hiller 0.1%
|
|
87
|
-
1 Sasha Koss 0.1%
|
|
88
|
-
1 Chris Thompson 0.1%
|
|
89
|
-
1 toastynerd 0.1%
|
|
90
|
-
1 Chris Connelly 0.1%
|
|
91
|
-
1 Chasen Le Hara 0.1%
|
|
92
|
-
1 Victor Costan 0.1%
|
|
93
|
-
1 Vinay Pulim 0.1%
|
|
94
|
-
1 Virginie BARDALES 0.1%
|
|
95
|
-
1 Vlad GURDIGA 0.1%
|
|
96
|
-
1 Brandon Payton 0.1%
|
|
97
|
-
1 Adam Hull 0.1%
|
|
98
|
-
1 ericdouglas 0.1%
|
|
99
|
-
1 Benjamin Horsleben 0.1%
|
|
100
|
-
1 laconbass 0.1%
|
|
101
|
-
1 Anand Patil 0.1%
|
|
102
|
-
1 mohayonao 0.1%
|
|
103
|
-
1 piecioshka 0.1%
|
|
104
|
-
1 root 0.1%
|
|
105
|
-
1 Julien Wajsberg 0.1%
|
|
106
|
-
1 Jeff Welch 0.1%
|
|
46
|
+
Please see the full
|
|
47
|
+
[Contributors Graph](https://github.com/chaijs/chai/graphs/contributors) for our
|
|
48
|
+
list of contributors.
|
|
49
|
+
|
|
50
|
+
### Core Contributors
|
|
51
|
+
|
|
52
|
+
Feel free to reach out to any of the core-contributors with you questions or
|
|
53
|
+
concerns. We will do our best to respond in a timely manner.
|
|
54
|
+
|
|
55
|
+
[](https://github.com/logicalparadox)
|
|
56
|
+
[](https://github.com/vesln)
|
|
57
|
+
[](https://github.com/keithamus)
|
|
107
58
|
|
|
108
59
|
## License
|
|
109
60
|
|
package/ReleaseNotes.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Release Notes
|
|
2
2
|
|
|
3
|
+
## Note
|
|
4
|
+
|
|
5
|
+
As of 3.0.0, the ReleaseNotes.md file has been deprecated. [Please refer to the release notes available on Github](https://github.com/chaijs/chai/releases). Or
|
|
6
|
+
[the release notes on the chaijs.com website](https://chaijs.com/releases).
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
3
10
|
## 2.3.0 / 2015-04-26
|
|
4
11
|
|
|
5
12
|
Added `ownPropertyDescriptor` assertion:
|