chai 2.1.1 → 3.0.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 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 any core-contributor or user whom has push access to
144
- the `chaijs/chai` repository.
145
-
146
- This process requires [git-extras](https://github.com/tj/git-extras) for some steps.
147
-
148
- 1. Ensure all tests pass.
149
- 2. Bump the version tag in-code and for all package managers.
150
- - `lib/chai.js`
151
- - `package.json`
152
- - `component.json`
153
- - `bower.json`
154
- 3. Build the browser version with `make`.
155
- 4. Append commit log to `HISTORY.md` using `git changelog` command.
156
- 5. Write human-friendly `ReleaseNotes.md` based on changelog.
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
- 6. Update `README.md` with an updated contributors list using `git summary` command.
161
- 7. Push a tagged release using `git release x.x.x`.
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
@@ -196,3 +200,7 @@ Feel free to reach out to any of the core-contributors with you questions or con
196
200
  - GH: [@vesln](https://github.com/vesln/)
197
201
  - TW: [@vesln](http://twitter.com/vesln)
198
202
  - IRC: vesln
203
+ - Keith Cirkel
204
+ - GH: [@keithamus](https://github.com/keithamus)
205
+ - TW: [@keithamus](http://twitter.com/keithamus)
206
+ - IRC: keithamus
package/History.md CHANGED
@@ -1,3 +1,45 @@
1
+ ### Note
2
+
3
+ As of 3.0.0, the History.md file has been deprecated. [Please refer to the full
4
+ commit logs available on GitHub](https://github.com/chaijs/chai/commits/master).
5
+
6
+ ---
7
+
8
+ 2.3.0 / 2015-04-26
9
+ ==================
10
+
11
+ * Merge pull request #423 from ehntoo/patch-1
12
+ * Merge pull request #422 from ljharb/fix_descriptor_tests
13
+ * Fix a small bug in the .null assertion docs
14
+ * Use a regex to account for property ordering issues across engines.
15
+ * Add `make test-firefox`
16
+ * Merge pull request #417 from astorije/astorije/minimalist-typo
17
+ * Remove trailing whitespaces
18
+ * Fix super minor typo in an example
19
+ * Merge pull request #408 from ljharb/enumerableProperty
20
+ * Add `ownPropertyDescriptor` assertion.
21
+
22
+ 2.2.0 / 2015-03-26
23
+ ==================
24
+
25
+ * Merge pull request #405 from chaijs/deep-escape-doc-tweaks
26
+ * Tweak documentation on `.deep` flag.
27
+ * Merge pull request #402 from umireon/escaping-dot-should-be-taken
28
+ * Documentation of escaping in `.deep` flag.
29
+ * take regular expression apart
30
+ * Feature: backslash-escaping in `.deep.property`
31
+ * Escaping dot should be taken in deep property
32
+
33
+ 2.1.2 / 2015-03-15
34
+ ==================
35
+
36
+ * Merge pull request #396 from chaijs/add-keith-cirkel-contributing-md
37
+ * Add Keith Cirkel to CONTRIBUTING.md
38
+ * Merge pull request #395 from cjqed/386-assert-operator-no-eval
39
+ * No longer using eval on assert operator #386
40
+ * Merge pull request #389 from chaijs/update-git-summary
41
+ * Update `git summary` in README
42
+
1
43
  2.1.1 / 2015-03-04
2
44
  ==================
3
45
 
package/README.md CHANGED
@@ -1,14 +1,21 @@
1
1
  [![Chai Documentation](http://chaijs.com/public/img/chai-logo.png)](http://chaijs.com)
2
2
 
3
+ [![license:mit](https://img.shields.io/badge/license-mit-green.svg?style=flat-square)](#license)<br>
4
+ [![tag:?](https://img.shields.io/github/tag/chaijs/chai.svg?style=flat-square)](https://github.com/chaijs/chai/releases)
5
+ [![build:?](https://img.shields.io/travis/chaijs/chai/master.svg?style=flat-square)](https://travis-ci.org/chaijs/chai)
6
+ [![coverage:?](https://img.shields.io/coveralls/chaijs/chai/master.svg?style=flat-square)](https://coveralls.io/r/chaijs/chai)<br>
7
+ [![npm:](https://img.shields.io/npm/v/chai.svg?style=flat-square)](https://www.npmjs.com/packages/chai)
8
+ [![dependencies:?](https://img.shields.io/npm/dm/chai.svg?style=flat-square)](https://www.npmjs.com/packages/chai)
9
+ [![devDependencies:?](https://img.shields.io/david/chaijs/chai.svg?style=flat-square)](https://david-dm.org/chaijs/chai)
10
+
11
+ [![Selenium Test Status](https://saucelabs.com/browser-matrix/chaijs.svg)](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
- [![Build Status](https://travis-ci.org/chaijs/chai.svg?branch=master)](https://travis-ci.org/chaijs/chai)
9
-
10
- [![Selenium Test Status](https://saucelabs.com/browser-matrix/chaijs.svg)](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,82 +28,22 @@ 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.
24
32
 
25
33
  ### Contributors
26
34
 
27
- project : chai
28
- repo age : 3 years, 3 months
29
- active : 224 days
30
- commits : 859
31
- files : 59
32
- authors :
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%
38
- 8 Chris Polis 0.9%
39
- 6 Ian Zamojc 0.7%
40
- 6 Ruben Verborgh 0.7%
41
- 5 Juliusz Gonera 0.6%
42
- 5 George Kats 0.6%
43
- 5 Jo Liss 0.6%
44
- 5 Scott Nonnenberg 0.6%
45
- 5 leider 0.6%
46
- 4 charlierudolph 0.5%
47
- 4 Chris Jones 0.5%
48
- 4 Max Edmands 0.5%
49
- 4 David da Silva 0.5%
50
- 4 Veselin 0.5%
51
- 4 josher19 0.5%
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%
60
- 2 Jakub Nešetřil 0.2%
61
- 2 Teddy Cross 0.2%
62
- 2 Roman Masek 0.2%
63
- 2 Gregg Lind 0.2%
64
- 2 Edwin Shao 0.2%
65
- 2 Bartvds 0.2%
66
- 1 toastynerd 0.1%
67
- 1 Anand Patil 0.1%
68
- 1 Benjamin Horsleben 0.1%
69
- 1 Brandon Payton 0.1%
70
- 1 Chasen Le Hara 0.1%
71
- 1 Chris Connelly 0.1%
72
- 1 Chris Thompson 0.1%
73
- 1 Christopher Hiller 0.1%
74
- 1 Chun-Yi 0.1%
75
- 1 DD 0.1%
76
- 1 Danilo Vaz 0.1%
77
- 1 Dido Arellano 0.1%
78
- 1 Jeff Welch 0.1%
79
- 1 Jesse McCarthy 0.1%
80
- 1 Julien Wajsberg 0.1%
81
- 1 Kilian Ciuffolo 0.1%
82
- 1 Luís Cardoso 0.1%
83
- 1 Martin Middel 0.1%
84
- 1 Mathias Schreck 0.1%
85
- 1 Michael Lange 0.1%
86
- 1 Niklas Närhinen 0.1%
87
- 1 Paul Miller 0.1%
88
- 1 Refael Ackermann 0.1%
89
- 1 Sasha Koss 0.1%
90
- 1 Victor Costan 0.1%
91
- 1 Vinay Pulim 0.1%
92
- 1 Virginie BARDALES 0.1%
93
- 1 ericdouglas 0.1%
94
- 1 laconbass 0.1%
95
- 1 mohayonao 0.1%
96
- 1 piecioshka 0.1%
97
- 1 shinnn 0.1%
98
- 1 Adam Hull 0.1%
35
+ Please see the full
36
+ [Contributors Graph](https://github.com/chaijs/chai/graphs/contributors) for our
37
+ list of contributors.
38
+
39
+ ### Core Contributors
40
+
41
+ Feel free to reach out to any of the core-contributors with you questions or
42
+ concerns. We will do our best to respond in a timely manner.
99
43
 
44
+ [![Jake Luer](https://avatars3.githubusercontent.com/u/58988?v=3&s=50)](https://github.com/logicalparadox)
45
+ [![Veselin Todorov](https://avatars3.githubusercontent.com/u/330048?v=3&s=50)](https://github.com/vesln)
46
+ [![Keith Cirkel](https://avatars3.githubusercontent.com/u/118266?v=3&s=50)](https://github.com/keithamus)
100
47
 
101
48
  ## License
102
49
 
package/ReleaseNotes.md CHANGED
@@ -1,5 +1,79 @@
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
+
10
+ ## 2.3.0 / 2015-04-26
11
+
12
+ Added `ownPropertyDescriptor` assertion:
13
+
14
+ ```js
15
+ expect('test').to.have.ownPropertyDescriptor('length');
16
+ expect('test').to.have.ownPropertyDescriptor('length', { enumerable: false, configurable: false, writable: false, value: 4 });
17
+ expect('test').not.to.have.ownPropertyDescriptor('length', { enumerable: false, configurable: false, writable: false, value: 3 });
18
+ expect('test').ownPropertyDescriptor('length').to.have.property('enumerable', false);
19
+ expect('test').ownPropertyDescriptor('length').to.have.keys('value');
20
+ ```
21
+
22
+ ### Community Contributions
23
+
24
+ #### Code Features & Fixes
25
+
26
+ * [#408](https://github.com/chaijs/chai/pull/408) Add `ownPropertyDescriptor`
27
+ assertion.
28
+ By [@ljharb](https://github.com/ljharb)
29
+ * [#422](https://github.com/chaijs/chai/pull/422) Improve ownPropertyDescriptor
30
+ tests.
31
+ By [@ljharb](https://github.com/ljharb)
32
+
33
+ #### Documentation fixes
34
+
35
+ * [#417](https://github.com/chaijs/chai/pull/417) Fix documentation typo
36
+ By [@astorije](https://github.com/astorije)
37
+ * [#423](https://github.com/chaijs/chai/pull/423) Fix inconsistency in docs.
38
+ By [@ehntoo](https://github.com/ehntoo)
39
+
40
+
41
+ ## 2.2.0 / 2015-03-26
42
+
43
+ Deep property strings can now be escaped using `\\` - for example:
44
+
45
+ ```js
46
+ var deepCss = { '.link': { '[target]': 42 }};
47
+ expect(deepCss).to.have.deep.property('\\.link.\\[target\\]', 42)
48
+ ```
49
+
50
+ ### Community Contributions
51
+
52
+ #### Code Features & Fixes
53
+
54
+ * [#402](https://github.com/chaijs/chai/pull/402) Allow escaping of deep
55
+ property keys.
56
+ By [@umireon](https://github.com/umireon)
57
+
58
+ #### Documentation fixes
59
+
60
+ * [#405](https://github.com/chaijs/chai/pull/405) Tweak documentation around
61
+ deep property escaping.
62
+ By [@keithamus](https://github.com/keithamus)
63
+
64
+
65
+ ## 2.1.2 / 2015-03-15
66
+
67
+ A minor bug fix. No new features.
68
+
69
+ ### Community Contributions
70
+
71
+ #### Code Features & Fixes
72
+
73
+ * [#395](https://github.com/chaijs/chai/pull/395) Fix eval-related bugs with
74
+ assert.operator ([#386](https://github.com/chaijs/chai/pull/386)).
75
+ By [@cjqed](https://github.com/cjqed)
76
+
3
77
  ## 2.1.1 / 2015-03-04
4
78
 
5
79
  Two minor bugfixes. No new features.
package/bower.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chai",
3
- "version": "2.1.1",
3
+ "version": "3.0.0",
4
4
  "description": "BDD/TDD assertion library for node.js and the browser. Test framework agnostic.",
5
5
  "license": "MIT",
6
6
  "keywords": [