chai 3.2.0 → 3.5.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/CODE_OF_CONDUCT.md +58 -0
- package/CONTRIBUTING.md +11 -3
- package/README.md +3 -1
- package/chai.js +593 -73
- package/lib/chai/assertion.js +2 -2
- package/lib/chai/core/assertions.js +148 -17
- package/lib/chai/interface/assert.js +225 -18
- package/lib/chai/interface/expect.js +1 -0
- package/lib/chai/interface/should.js +103 -0
- package/lib/chai/utils/addChainableMethod.js +1 -0
- package/lib/chai/utils/addMethod.js +1 -0
- package/lib/chai/utils/addProperty.js +9 -1
- package/lib/chai/utils/expectTypes.js +42 -0
- package/lib/chai/utils/flag.js +1 -0
- package/lib/chai/utils/getActual.js +2 -0
- package/lib/chai/utils/getEnumerableProperties.js +1 -0
- package/lib/chai/utils/getMessage.js +4 -3
- package/lib/chai/utils/getName.js +2 -0
- package/lib/chai/utils/getPathInfo.js +1 -0
- package/lib/chai/utils/getPathValue.js +2 -1
- package/lib/chai/utils/getProperties.js +1 -0
- package/lib/chai/utils/hasProperty.js +2 -1
- package/lib/chai/utils/index.js +5 -1
- package/lib/chai/utils/inspect.js +2 -0
- package/lib/chai/utils/objDisplay.js +1 -0
- package/lib/chai/utils/overwriteChainableMethod.js +1 -0
- package/lib/chai/utils/overwriteMethod.js +1 -0
- package/lib/chai/utils/overwriteProperty.js +1 -0
- package/lib/chai/utils/test.js +2 -0
- package/lib/chai/utils/transferFlags.js +1 -0
- package/lib/chai.js +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# Contributor Code of Conduct
|
|
2
|
+
|
|
3
|
+
> Read in: [Español](http://contributor-covenant.org/version/1/3/0/es/) |
|
|
4
|
+
[Français](http://contributor-covenant.org/version/1/3/0/fr/) |
|
|
5
|
+
[Italiano](http://contributor-covenant.org/version/1/3/0/it/) |
|
|
6
|
+
[Magyar](http://contributor-covenant.org/version/1/3/0/hu/) |
|
|
7
|
+
[Polskie](http://contributor-covenant.org/version/1/3/0/pl/) |
|
|
8
|
+
[Português](http://contributor-covenant.org/version/1/3/0/pt/) |
|
|
9
|
+
[Português do Brasil](http://contributor-covenant.org/version/1/3/0/pt_br/)
|
|
10
|
+
|
|
11
|
+
As contributors and maintainers of this project, and in the interest of
|
|
12
|
+
fostering an open and welcoming community, we pledge to respect all people who
|
|
13
|
+
contribute through reporting issues, posting feature requests, updating
|
|
14
|
+
documentation, submitting pull requests or patches, and other activities.
|
|
15
|
+
|
|
16
|
+
We are committed to making participation in this project a harassment-free
|
|
17
|
+
experience for everyone, regardless of level of experience, gender, gender
|
|
18
|
+
identity and expression, sexual orientation, disability, personal appearance,
|
|
19
|
+
body size, race, ethnicity, age, religion, or nationality.
|
|
20
|
+
|
|
21
|
+
Examples of unacceptable behavior by participants include:
|
|
22
|
+
|
|
23
|
+
* The use of sexualized language or imagery
|
|
24
|
+
* Personal attacks
|
|
25
|
+
* Trolling or insulting/derogatory comments
|
|
26
|
+
* Public or private harassment
|
|
27
|
+
* Publishing other's private information, such as physical or electronic
|
|
28
|
+
addresses, without explicit permission
|
|
29
|
+
* Other unethical or unprofessional conduct
|
|
30
|
+
|
|
31
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
|
32
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
|
33
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
|
34
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
|
35
|
+
threatening, offensive, or harmful.
|
|
36
|
+
|
|
37
|
+
By adopting this Code of Conduct, project maintainers commit themselves to
|
|
38
|
+
fairly and consistently applying these principles to every aspect of managing
|
|
39
|
+
this project. Project maintainers who do not follow or enforce the Code of
|
|
40
|
+
Conduct may be permanently removed from the project team.
|
|
41
|
+
|
|
42
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
|
43
|
+
when an individual is representing the project or its community.
|
|
44
|
+
|
|
45
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
46
|
+
reported by contacting a project maintainer at [INSERT EMAIL ADDRESS]. All
|
|
47
|
+
complaints will be reviewed and investigated and will result in a response that
|
|
48
|
+
is deemed necessary and appropriate to the circumstances. Maintainers are
|
|
49
|
+
obligated to maintain confidentiality with regard to the reporter of an
|
|
50
|
+
incident.
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
|
54
|
+
version 1.3.0, available at
|
|
55
|
+
[http://contributor-covenant.org/version/1/3/0/][version]
|
|
56
|
+
|
|
57
|
+
[homepage]: http://contributor-covenant.org
|
|
58
|
+
[version]: http://contributor-covenant.org/version/1/3/0/
|
package/CONTRIBUTING.md
CHANGED
|
@@ -121,19 +121,27 @@ git checkout -b <topic-branch-name>
|
|
|
121
121
|
|
|
122
122
|
4. Commit your changes in logical chunks. Use Git's [interactive rebase](https://help.github.com/articles/interactive-rebase) feature to tidy up your commits before making them public.
|
|
123
123
|
|
|
124
|
-
5.
|
|
124
|
+
5. Run you code to make sure it works. If you're still having problems please try to run `make clean` and then test your code again.
|
|
125
|
+
|
|
126
|
+
```bash
|
|
127
|
+
npm test
|
|
128
|
+
# when finished running tests...
|
|
129
|
+
git checkout chai.js
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
6. Locally merge (or rebase) the upstream development branch into your topic branch:
|
|
125
133
|
|
|
126
134
|
```bash
|
|
127
135
|
git pull [--rebase] upstream <dev-branch>
|
|
128
136
|
```
|
|
129
137
|
|
|
130
|
-
|
|
138
|
+
7. Push your topic branch up to your fork:
|
|
131
139
|
|
|
132
140
|
```bash
|
|
133
141
|
git push origin <topic-branch-name>
|
|
134
142
|
```
|
|
135
143
|
|
|
136
|
-
|
|
144
|
+
8. [Open a Pull Request](https://help.github.com/articles/using-pull-requests/) with a clear title and description.
|
|
137
145
|
|
|
138
146
|
**IMPORTANT**: By submitting a patch, you agree to allow the project owner to license your work under the same license as that used by the project.
|
|
139
147
|
|
package/README.md
CHANGED
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
|
|
11
11
|
[](https://saucelabs.com/u/chaijs)
|
|
12
12
|
|
|
13
|
+
[]( https://chai-slack.herokuapp.com/)
|
|
14
|
+
[](https://gitter.im/chaijs/chai)
|
|
13
15
|
|
|
14
16
|
Chai is a BDD / TDD assertion library for [node](http://nodejs.org) and the browser that
|
|
15
17
|
can be delightfully paired with any javascript testing framework.
|
|
@@ -49,7 +51,7 @@ list of contributors.
|
|
|
49
51
|
|
|
50
52
|
### Core Contributors
|
|
51
53
|
|
|
52
|
-
Feel free to reach out to any of the core
|
|
54
|
+
Feel free to reach out to any of the core contributors with your questions or
|
|
53
55
|
concerns. We will do our best to respond in a timely manner.
|
|
54
56
|
|
|
55
57
|
[](https://github.com/logicalparadox)
|