Preen mocha and chai. todo: fix concat
This commit is contained in:
parent
508c59e05c
commit
756fdd2383
19 changed files with 7 additions and 3161 deletions
|
@ -40,6 +40,13 @@
|
|||
],
|
||||
"qrcode": [
|
||||
"qrcode.js"
|
||||
],
|
||||
"mocha": [
|
||||
"mocha.js",
|
||||
"mocha.css"
|
||||
],
|
||||
"chai": [
|
||||
"chai.js"
|
||||
]
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
|
@ -1,38 +0,0 @@
|
|||
{
|
||||
"name": "chai",
|
||||
"version": "1.9.2",
|
||||
"description": "BDD/TDD assertion library for node.js and the browser. Test framework agnostic.",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
"test",
|
||||
"assertion",
|
||||
"assert",
|
||||
"testing",
|
||||
"chai"
|
||||
],
|
||||
"main": "chai.js",
|
||||
"ignore": [
|
||||
"build",
|
||||
"components",
|
||||
"lib",
|
||||
"node_modules",
|
||||
"support",
|
||||
"test",
|
||||
"index.js",
|
||||
"Makefile",
|
||||
".*"
|
||||
],
|
||||
"dependencies": {},
|
||||
"devDependencies": {},
|
||||
"homepage": "https://github.com/chaijs/chai",
|
||||
"_release": "1.9.2",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "1.9.2",
|
||||
"commit": "73b4559e5ef336cf4292dfdb9ea4eb62b6bfadae"
|
||||
},
|
||||
"_source": "git://github.com/chaijs/chai.git",
|
||||
"_target": "~1.9.2",
|
||||
"_originalSource": "chai",
|
||||
"_direct": true
|
||||
}
|
|
@ -1,173 +0,0 @@
|
|||
# Chai Contribution Guidelines
|
||||
|
||||
We like to encourage you to contribute to the Chai.js repository. This should be as easy as possible for you but there are a few things to consider when contributing. The following guidelines for contribution should be followed if you want to submit a pull request or open an issue.
|
||||
|
||||
Following these guidelines helps to communicate that you respect the time of the developers managing and developing this open source project. In return, they should reciprocate that respect in addressing your issue or assessing patches and features.
|
||||
|
||||
#### Table of Contents
|
||||
|
||||
- [TLDR;](#tldr)
|
||||
- [Contributing](#contributing)
|
||||
- [Bug Reports](#bugs)
|
||||
- [Feature Requests](#features)
|
||||
- [Pull Requests](#pull-requests)
|
||||
- [Support](#support)
|
||||
- [Resources](#resources)
|
||||
- [Core Contributors](#contributors)
|
||||
|
||||
<a name="tldr"></a>
|
||||
## TLDR;
|
||||
|
||||
- Creating an Issue or Pull Request requires a [GitHub](http://github.com) account.
|
||||
- Issue reports should be **clear**, **concise** and **reproducible**. Check to see if your issue has already been resolved in the [master]() branch or already reported in Chai's [GitHub Issue Tracker](https://github.com/chaijs/chai/issues).
|
||||
- Pull Requests must adhere to strict [coding style guidelines](https://github.com/chaijs/chai/wiki/Chai-Coding-Style-Guide).
|
||||
- In general, avoid submitting PRs for new Assertions without asking core contributors first. More than likely it would be better implemented as a plugin.
|
||||
- Additional support is available via the [Google Group](http://groups.google.com/group/chaijs) or on irc.freenode.net#chaijs.
|
||||
- **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.
|
||||
|
||||
|
||||
|
||||
<a name="contributing"></a>
|
||||
## Contributing
|
||||
|
||||
The issue tracker is the preferred channel for [bug reports](#bugs),
|
||||
[feature requests](#features) and [submitting pull
|
||||
requests](#pull-requests), but please respect the following restrictions:
|
||||
|
||||
* Please **do not** use the issue tracker for personal support requests (use
|
||||
[Google Group](https://groups.google.com/forum/#!forum/chaijs) or IRC).
|
||||
* Please **do not** derail or troll issues. Keep the discussion on topic and
|
||||
respect the opinions of others
|
||||
|
||||
<a name="bugs"></a>
|
||||
### Bug Reports
|
||||
|
||||
A bug is a **demonstrable problem** that is caused by the code in the repository.
|
||||
|
||||
Guidelines for bug reports:
|
||||
|
||||
1. **Use the GitHub issue search** — check if the issue has already been reported.
|
||||
2. **Check if the issue has been fixed** — try to reproduce it using the latest `master` or development branch in the repository.
|
||||
3. **Isolate the problem** — create a test case to demonstrate your issue. Provide either a repo, gist, or code sample to demonstrate you problem.
|
||||
|
||||
A good bug report shouldn't leave others needing to chase you up for more information. Please try to be as detailed as possible in your report. What is your environment? What steps will reproduce the issue? What browser(s) and/or Node.js versions experience the problem? What would you expect to be the outcome? All these details will help people to fix any potential bugs.
|
||||
|
||||
Example:
|
||||
|
||||
> Short and descriptive example bug report title
|
||||
>
|
||||
> A summary of the issue and the browser/OS environment in which it occurs. If suitable, include the steps required to reproduce the bug.
|
||||
>
|
||||
> 1. This is the first step
|
||||
> 2. This is the second step
|
||||
> 3. Further steps, etc.
|
||||
>
|
||||
> `<url>` - a link to the reduced test case OR
|
||||
> ```js
|
||||
> expect(a).to.equal('a');
|
||||
> // code sample
|
||||
> ```
|
||||
>
|
||||
> Any other information you want to share that is relevant to the issue being reported. This might include the lines of code that you have identified as causing the bug, and potential solutions (and your opinions on their merits).
|
||||
|
||||
<a name="features"></a>
|
||||
### Feature Requests
|
||||
|
||||
Feature requests are welcome. But take a moment to find out whether your idea fits with the scope and aims of the project. It's up to *you* to make a strong case to convince the project's developers of the merits of this feature. Please provide as much detail and context as possible.
|
||||
|
||||
Furthermore, since Chai.js has a [robust plugin API](http://chaijs.com/guide/plugins/), we encourage you to publish **new Assertions** as plugins. If your feature is an enhancement to an **existing Assertion**, please propose your changes as an issue prior to opening a pull request. If the core Chai.js contributors feel your plugin would be better suited as a core assertion, they will invite you to open a PR in [chaijs/chai](https://github.com/chaijs/chai).
|
||||
|
||||
<a name="pull-requests"></a>
|
||||
### Pull Requests
|
||||
|
||||
- PRs for new core-assertions are advised against.
|
||||
- PRs for core-assertion bug fixes are always welcome.
|
||||
- PRs for enhancing the interfaces are always welcome.
|
||||
- PRs that increase test coverage are always welcome.
|
||||
- PRs are scrutinized for coding-style.
|
||||
|
||||
Good pull requests - patches, improvements, new features - are a fantastic help. They should remain focused in scope and avoid containing unrelated commits.
|
||||
|
||||
**Please ask first** before embarking on any significant pull request (e.g. implementing features, refactoring code), otherwise you risk spending a lot of time working on something that the project's developers might not want to merge into the project.
|
||||
|
||||
Please adhere to the coding conventions used throughout a project (indentation, accurate comments, etc.) and any other requirements (such as test coverage). Please review the [Chai.js Coding Style Guide](https://github.com/chaijs/chai/wiki/Chai-Coding-Style-Guide).
|
||||
|
||||
Follow this process if you'd like your work considered for inclusion in the project:
|
||||
|
||||
1. [Fork](http://help.github.com/fork-a-repo/) the project, clone your fork, and configure the remotes:
|
||||
|
||||
```bash
|
||||
# Clone your fork of the repo into the current directory
|
||||
git clone https://github.com/<your-username>/<repo-name>
|
||||
# Navigate to the newly cloned directory
|
||||
cd <repo-name>
|
||||
# Assign the original repo to a remote called "upstream"
|
||||
git remote add upstream https://github.com/<upstream-owner>/<repo-name>
|
||||
```
|
||||
|
||||
2. If you cloned a while ago, get the latest changes from upstream:
|
||||
|
||||
```bash
|
||||
git checkout <dev-branch>
|
||||
git pull upstream <dev-branch>
|
||||
```
|
||||
|
||||
3. Create a new topic branch (off the main project development branch) to contain your feature, change, or fix:
|
||||
|
||||
```bash
|
||||
git checkout -b <topic-branch-name>
|
||||
```
|
||||
|
||||
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.
|
||||
|
||||
5. Locally merge (or rebase) the upstream development branch into your topic branch:
|
||||
|
||||
```bash
|
||||
git pull [--rebase] upstream <dev-branch>
|
||||
```
|
||||
|
||||
6. Push your topic branch up to your fork:
|
||||
|
||||
```bash
|
||||
git push origin <topic-branch-name>
|
||||
```
|
||||
|
||||
7. [Open a Pull Request](https://help.github.com/articles/using-pull-requests/) with a clear title and description.
|
||||
|
||||
**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.
|
||||
|
||||
<a name="support"></a>
|
||||
## Support
|
||||
|
||||
<a name="resources"></a>
|
||||
### Resources
|
||||
|
||||
For most of the documentation you are going to want to visit [ChaiJS.com](http://chaijs.com).
|
||||
|
||||
- [Getting Started Guide](http://chaijs.com/guide/)
|
||||
- [API Reference](http://chaijs.com/api/)
|
||||
- [Plugins](http://chaijs.com/plugins/)
|
||||
|
||||
Alternatively, the [wiki](https://github.com/chaijs/chai/wiki) might be what you are looking for.
|
||||
|
||||
- [Chai Coding Style Guide](https://github.com/chaijs/chai/wiki/Chai-Coding-Style-Guide)
|
||||
- [Third-party Resources](https://github.com/chaijs/chai/wiki/Third-Party-Resources)
|
||||
|
||||
Or finally, you may find a core-contributor or like-minded developer in any of our support channels.
|
||||
|
||||
- IRC: irc.freenode.org #chaijs
|
||||
- [Mailing List / Google Group](https://groups.google.com/forum/#!forum/chaijs)
|
||||
|
||||
<a name="contributors"></a>
|
||||
### Core Contributors
|
||||
|
||||
Feel free to reach out to any of the core-contributors with you questions or concerns. We will do our best to respond in a timely manner.
|
||||
|
||||
- Jake Luer
|
||||
- GH: [@logicalparadox](https://github.com/logicalparadox)
|
||||
- TW: [@jakeluer](http://twitter.com/jakeluer)
|
||||
- IRC: logicalparadox
|
||||
- Veselin Todorov
|
||||
- GH: [@vesln](https://github.com/vesln/)
|
||||
- TW: [@vesln](http://twitter.com/vesln)
|
||||
- IRC: vesln
|
|
@ -1,917 +0,0 @@
|
|||
|
||||
1.9.2 / 2014-09-29
|
||||
==================
|
||||
|
||||
* Merge pull request #268 from charlierudolph/cr-lazyMessages
|
||||
* Merge pull request #269 from charlierudolph/cr-codeCleanup
|
||||
* Merge pull request #277 from charlierudolph/fix-doc
|
||||
* Merge pull request #279 from mohayonao/fix-closeTo
|
||||
* Merge pull request #292 from boneskull/mocha
|
||||
* resolves #255: upgrade mocha
|
||||
* Merge pull request #289 from charlierudolph/cr-dryUpCode
|
||||
* Dry up code
|
||||
* Merge pull request #275 from DrRataplan/master
|
||||
* assert: .closeTo() verify value's type before assertion
|
||||
* Rewrite pretty-printing HTML elements to prevent throwing internal errors Fixes errors occuring when using a non-native DOM implementation
|
||||
* Fix assert documentation
|
||||
* Remove unused argument
|
||||
* Allow messages to be functions
|
||||
* Merge pull request #267 from shinnn/master
|
||||
* Use SVG badge
|
||||
* Merge pull request #264 from cjthompson/keys_diff
|
||||
* Show diff for keys assertion
|
||||
|
||||
1.9.1 / 2014-03-19
|
||||
==================
|
||||
|
||||
* deps update
|
||||
* util: [getActual] select actual logic now allows undefined for actual. Closes #183
|
||||
* docs: [config] make public, express param type
|
||||
* Merge pull request #251 from romario333/threshold3
|
||||
* Fix issue #166 - configurable threshold in objDisplay.
|
||||
* Move configuration options to config.js.
|
||||
* Merge pull request #233 from Empeeric/master
|
||||
* Merge pull request #244 from leider/fix_for_contains
|
||||
* Merge pull request #247 from didoarellano/typo-fixes
|
||||
* Fix typos
|
||||
* Merge pull request #245 from lfac-pt/patch-1
|
||||
* Update `exports.version` to 1.9.0
|
||||
* aborting loop on finding
|
||||
* declaring variable only once
|
||||
* additional test finds incomplete implementation
|
||||
* simplified code
|
||||
* fixing #239 (without changing chai.js)
|
||||
* ssfi as it should be
|
||||
* Merge pull request #228 from duncanbeevers/deep_members
|
||||
* Deep equality check for collection membership
|
||||
|
||||
1.9.0 / 2014-01-29
|
||||
==================
|
||||
|
||||
* docs: add contributing.md #238
|
||||
* assert: .throws() returns thrown error. Closes #185
|
||||
* Merge pull request #232 from laconbass/assert-throws
|
||||
* assert: .fail() parameter mismatch. Closes #206
|
||||
* Merge branch 'karma-fixes'
|
||||
* Add karma phantomjs launcher
|
||||
* Use latest karma and sauce launcher
|
||||
* Karma tweaks
|
||||
* Merge pull request #230 from jkroso/include
|
||||
* Merge pull request #237 from chaijs/coverage
|
||||
* Add coverage to npmignore
|
||||
* Remove lib-cov from test-travisci dependents
|
||||
* Remove the not longer needed lcov reporter
|
||||
* Test coverage with istanbul
|
||||
* Remove jscoverage
|
||||
* Remove coveralls
|
||||
* Merge pull request #226 from duncanbeevers/add_has
|
||||
* Avoid error instantiation if possible on assert.throws
|
||||
* Merge pull request #231 from duncanbeevers/update_copyright_year
|
||||
* Update Copyright notices to 2014
|
||||
* handle negation correctly
|
||||
* add failing test case
|
||||
* support `{a:1,b:2}.should.include({a:1})`
|
||||
* Merge pull request #224 from vbardales/master
|
||||
* Add `has` to language chains
|
||||
* Merge pull request #219 from demands/overwrite_chainable
|
||||
* return error on throw method to chain on error properties, possibly different from message
|
||||
* util: store chainable behavior in a __methods object on ctx
|
||||
* util: code style fix
|
||||
* util: add overwriteChainableMethod utility (for #215)
|
||||
* Merge pull request #217 from demands/test_cleanup
|
||||
* test: make it possible to run utilities tests with --watch
|
||||
* makefile: change location of karma-runner bin script
|
||||
* Merge pull request #202 from andreineculau/patch-2
|
||||
* test: add tests for throwing custom errors
|
||||
* Merge pull request #201 from andreineculau/patch-1
|
||||
* test: updated for the new assertion errors
|
||||
* core: improve message for assertion errors (throw assertion)
|
||||
|
||||
1.8.1 / 2013-10-10
|
||||
==================
|
||||
|
||||
* pkg: update deep-eql version
|
||||
|
||||
1.8.0 / 2013-09-18
|
||||
==================
|
||||
|
||||
* test: [sauce] add a few more browsers
|
||||
* Merge branch 'refactor/deep-equal'
|
||||
* util: remove embedded deep equal utility
|
||||
* util: replace embedded deep equal with external module
|
||||
* Merge branch 'feature/karma'
|
||||
* docs: add sauce badge to readme [ci skip]
|
||||
* test: [sauce] use karma@canary to prevent timeouts
|
||||
* travis: only run on node 0.10
|
||||
* test: [karma] use karma phantomjs runner
|
||||
* Merge pull request #181 from tricknotes/fix-highlight
|
||||
* Fix highlight for example code
|
||||
|
||||
1.7.2 / 2013-06-27
|
||||
==================
|
||||
|
||||
* coverage: add coveralls badge
|
||||
* test: [coveralls] add coveralls api integration. testing travis-ci integration
|
||||
* Merge branch 'master' of github.com:chaijs/chai
|
||||
* Merge branch 'feature/bower'
|
||||
* Merge pull request #180 from tricknotes/modify-method-title
|
||||
* Merge pull request #179 from tricknotes/highlight-code-example
|
||||
* Modify method title to include argument name
|
||||
* Fix to highlight code example
|
||||
* bower: granular ignores
|
||||
|
||||
1.7.1 / 2013-06-24
|
||||
==================
|
||||
|
||||
* Merge branch 'feature/bower'. #175
|
||||
* bower: add json file
|
||||
* build: browser
|
||||
|
||||
1.7.0 / 2013-06-17
|
||||
==================
|
||||
|
||||
* error: remove internal assertion error constructor
|
||||
* core: [assertion-error] replace internal assertion error with dep
|
||||
* deps: add chaijs/assertion-error@1.0.0
|
||||
* docs: fix typo in source file. #174
|
||||
* Merge pull request #174 from piecioshka/master
|
||||
* typo
|
||||
* Merge branch 'master' of github.com:chaijs/chai
|
||||
* pkg: lock mocha/mocha-phantomjs versions (for now)
|
||||
* Merge pull request #173 from chaijs/inspect-fix
|
||||
* Fix `utils.inspect` with custom object-returning inspect()s.
|
||||
* Merge pull request #171 from Bartvds/master
|
||||
* replaced tabs with 2 spaces
|
||||
* added assert.notOk()
|
||||
* Merge pull request #169 from katsgeorgeek/topics/master
|
||||
* Fix comparison objects.
|
||||
|
||||
1.6.1 / 2013-06-05
|
||||
==================
|
||||
|
||||
* Merge pull request #168 from katsgeorgeek/topics/master
|
||||
* Add test for different RegExp flags.
|
||||
* Add test for regexp comparison.
|
||||
* Downgrade mocha version for fix running Phantom tests.
|
||||
* Fix comparison equality of two regexps.
|
||||
* Merge pull request #161 from brandonpayton/master
|
||||
* Fix documented name for assert interfaces isDefined method
|
||||
|
||||
1.6.0 / 2013-04-29
|
||||
==================
|
||||
|
||||
* build: browser
|
||||
* assert: [(not)include] throw on incompatible haystack. Closes #142
|
||||
* assert: [notInclude] add assert.notInclude. Closes #158
|
||||
* browser build
|
||||
* makefile: force browser build on browser-test
|
||||
* makefile: use component for browser build
|
||||
* core: [assertions] remove extraneous comments
|
||||
* Merge branch 'master' of github.com:chaijs/chai
|
||||
* test: [assert] deep equal ordering
|
||||
* Merge pull request #153 from NickHeiner/array-assertions
|
||||
* giving members a no-flag assertion
|
||||
* Code review comments - changing syntax
|
||||
* Code review comments
|
||||
* Adding members and memberEquals assertions for checking for subsets and set equality. Implements chaijs/chai#148.
|
||||
* Merge pull request #140 from RubenVerborgh/function-prototype
|
||||
* Restore the `call` and `apply` methods of Function when adding a chainable method.
|
||||
* readme: 2013
|
||||
* notes: migration notes for deep equal changes
|
||||
* test: for ever err() there must be a passing version
|
||||
|
||||
1.5.0 / 2013-02-03
|
||||
==================
|
||||
|
||||
* docs: add Release Notes for non-gitlog summary of changes.
|
||||
* lib: update copyright to 2013
|
||||
* Merge branch 'refactor/travis'
|
||||
* makefile: remove test-component for full test run
|
||||
* pkg: script test now runs make test so travis will test browser
|
||||
* browser: build
|
||||
* tests: refactor some tests to support new objDisplay output
|
||||
* test: [bootstrap] normalize boostrap across all test scenarios
|
||||
* assertions: refactor some assertions to use objDisplay instead of inspect
|
||||
* util: [objDisplay] normalize output of functions
|
||||
* makefile: refactor for full build scenarios
|
||||
* component: fix build bug where missing util:type file
|
||||
* assertions: [throw] code cleanup
|
||||
* Merge branch 'refactor/typeDetection'
|
||||
* browser: build
|
||||
* makefile: chai.js is .PHONY so it builds every time
|
||||
* test: [expect] add arguments type detection test
|
||||
* core/assertions: [type] (a/an) refactor to use type detection utility
|
||||
* util: add cross-browser type detection utility
|
||||
* Merge branch 'feature/component'
|
||||
* browser: build
|
||||
* component: add component.json file
|
||||
* makefile: refactor for fine grain control of testing scenarios
|
||||
* test: add mochaPhantomJS support and component test file
|
||||
* deps: add component and mocha-phantomjs for browser testing
|
||||
* ignore: update ignore files for component support
|
||||
* travis: run for all branches
|
||||
* Merge branch 'feature/showDiff'
|
||||
* test: [Assertion] configruable showDiff flag. Closes #132
|
||||
* lib: [Assertion] add configurable showDiff flag. #132
|
||||
* Merge branch 'feature/saucelabs'
|
||||
* Merge branch 'master' into feature/saucelabs
|
||||
* browser: build
|
||||
* support: add mocha cloud runner, client, and html test page
|
||||
* test: [saucelabs] add auth placeholder
|
||||
* deps: add mocha-cloud
|
||||
* Merge pull request #136 from whatthejeff/message_fix
|
||||
* Merge pull request #138 from timnew/master
|
||||
* Fix issue #137, test message existence by using message!=null rather than using message
|
||||
* Fixed backwards negation messages.
|
||||
* Merge pull request #133 from RubenVerborgh/throw
|
||||
* Functions throwing strings can reliably be tested.
|
||||
* Merge pull request #131 from RubenVerborgh/proto
|
||||
* Cache whether __proto__ is supported.
|
||||
* Use __proto__ if available.
|
||||
* Determine the property names to exclude beforehand.
|
||||
* Merge pull request #126 from RubenVerborgh/eqls
|
||||
* Add alias eqls for eql.
|
||||
* Use inherited enumerable properties in deep equality comparison.
|
||||
* Show inherited properties when inspecting an object.
|
||||
* Add new getProperties and getEnumerableProperties utils.
|
||||
* showDiff: force true for equal and eql
|
||||
|
||||
1.4.2 / 2012-12-21
|
||||
==================
|
||||
|
||||
* browser build: (object diff support when used with mocha) #106
|
||||
* test: [display] array test for mocha object diff
|
||||
* browser: no longer need different AssertionError constructor
|
||||
|
||||
1.4.1 / 2012-12-21
|
||||
==================
|
||||
|
||||
* showDiff: force diff for equal and eql. #106
|
||||
* test: [expect] type null. #122
|
||||
* Merge pull request #115 from eshao/fix-assert-Throw
|
||||
* FIX: assert.Throw checks error type/message
|
||||
* TST: assert.Throw should check error type/message
|
||||
|
||||
1.4.0 / 2012-11-29
|
||||
==================
|
||||
|
||||
* pre-release browser build
|
||||
* clean up index.js to not check for cov, revert package.json to use index.js
|
||||
* convert tests to use new bootstrap
|
||||
* refactor testing bootstrap
|
||||
* use spaces (not tabs). Clean up #114
|
||||
* Merge pull request #114 from trantorLiu/master
|
||||
* Add most() (alias: lte) and least() (alias: gte) to the API with new chainers "at" and "of".
|
||||
* Change `main` to ./lib/chai. Fixes #28.
|
||||
* Merge pull request #104 from connec/deep_equals_circular_references_
|
||||
* Merge pull request #109 from nnarhinen/patch-1
|
||||
* Check for 'actual' type
|
||||
* Added support for circular references when checking deep (in)equality.
|
||||
|
||||
1.3.0 / 2012-10-01
|
||||
==================
|
||||
|
||||
* browser build w/ folio >= 0.3.4. Closes #99
|
||||
* add back buffer test for deep equal
|
||||
* do not write flags to assertion.prototype
|
||||
* remove buffer test from expect
|
||||
* browser build
|
||||
* improve documentation of custom error messages
|
||||
* Merge branch 'master' of git://github.com/Liffft/chai into Liffft-master
|
||||
* browser build
|
||||
* improved buffer deep equal checking
|
||||
* mocha is npm test command
|
||||
* Cleaning up the js style…
|
||||
* expect tests now include message pass-through
|
||||
* packaging up browser-side changes…
|
||||
* Increasing Throws error message verbosity
|
||||
* Should syntax: piping message through
|
||||
* Make globalShould test work in browser too.
|
||||
* Add a setter for `Object.prototype.should`. Closes #86.
|
||||
|
||||
1.2.0 / 2012-08-07
|
||||
==================
|
||||
|
||||
* Merge branch 'feature/errmsg'
|
||||
* browser build
|
||||
* comment updates for utilities
|
||||
* tweak objDislay to only kick in if object inspection is too long
|
||||
* Merge branch 'master' into feature/errmsg
|
||||
* add display sample for error message refactor
|
||||
* first draft of error message refactor. #93
|
||||
* add `closeTo` assertion to `assert` interface. Closes #89.
|
||||
* update folio build for better require.js handling. Closes #85
|
||||
* Merge pull request #92 from paulmillr/topics/add-dom-checks
|
||||
* Add check for DOM objects.
|
||||
* browser build
|
||||
* Merge branch 'master' of github.com:chaijs/chai
|
||||
* bug - getActual not defaulting to assertion subject
|
||||
* Merge pull request #88 from pwnall/master
|
||||
* Don't inspect() assertion arguments if the assertion passes.
|
||||
|
||||
1.1.1 / 2012-07-09
|
||||
==================
|
||||
|
||||
* improve commonjs support on browser build
|
||||
* Merge pull request #83 from tkazec/equals
|
||||
* Document .equals
|
||||
* Add .equals as an alias of .equal
|
||||
* remove unused browser prefix/suffix
|
||||
* Merge branch 'feature/folio-build'
|
||||
* browser build
|
||||
* using folio to compile
|
||||
* clean up makefile
|
||||
* early folio 0.3.x support
|
||||
|
||||
1.1.0 / 2012-06-26
|
||||
==================
|
||||
|
||||
* browser build
|
||||
* Disable "Assertion.includeStack is false" test in IE.
|
||||
* Use `utils.getName` for all function inspections.
|
||||
* Merge pull request #80 from kilianc/closeTo
|
||||
* fixes #79
|
||||
* browser build
|
||||
* expand docs to indicate change of subject for chaining. Closes #78
|
||||
* add `that` chain noop
|
||||
* Merge branch 'bug/74'
|
||||
* comments on how to property use `length` as chain. Closes #74
|
||||
* tests for length as chainable property. #74
|
||||
* add support for `length` as chainable prop/method.
|
||||
* Merge branch 'bug/77'
|
||||
* tests for getPathValue when working with nested arrays. Closes #77
|
||||
* add getPathValue support for nested arrays
|
||||
* browser build
|
||||
* fix bug for missing browser utils
|
||||
* compile tool aware of new folder layout
|
||||
* Merge branch 'refactor/1dot1'
|
||||
* move core assertions to own file and refactor all using utils
|
||||
* rearrange folder structure
|
||||
|
||||
1.0.4 / 2012-06-03
|
||||
==================
|
||||
|
||||
* Merge pull request #68 from fizker/itself
|
||||
* Added itself chain.
|
||||
* simplify error inspections for cross browser compatibility
|
||||
* fix safari `addChainableMethod` errors. Closes #69
|
||||
|
||||
1.0.3 / 2012-05-27
|
||||
==================
|
||||
|
||||
* Point Travis badge to the right place.
|
||||
* Make error message for eql/deep.equal more clear.
|
||||
* Fix .not.deep.equal.
|
||||
* contributors list
|
||||
|
||||
1.0.2 / 2012-05-26
|
||||
==================
|
||||
|
||||
* Merge pull request #67 from chaijs/chaining-and-flags
|
||||
* Browser build.
|
||||
* Use `addChainableMethod` to get away from `__proto__` manipulation.
|
||||
* New `addChainableMethod` utility.
|
||||
* Replace `getAllFlags` with `transferFlags` utility.
|
||||
* browser build
|
||||
* test - get all flags
|
||||
* utility - get all flags
|
||||
* Add .mailmap to .npmignore.
|
||||
* Add a .mailmap file to fix my name in shortlogs.
|
||||
|
||||
1.0.1 / 2012-05-18
|
||||
==================
|
||||
|
||||
* browser build
|
||||
* Fixing "an" vs. "a" grammar in type assertions.
|
||||
* Uniformize `assert` interface inline docs.
|
||||
* Don't use `instanceof` for `assert.isArray`.
|
||||
* Add `deep` flag for equality and property value.
|
||||
* Merge pull request #64 from chaijs/assertion-docs
|
||||
* Uniformize assertion inline docs.
|
||||
* Add npm-debug.log to .gitignore.
|
||||
* no reserved words as actuals. #62
|
||||
|
||||
1.0.0 / 2012-05-15
|
||||
==================
|
||||
|
||||
* readme cleanup
|
||||
* browser build
|
||||
* utility comments
|
||||
* removed docs
|
||||
* update to package.json
|
||||
* docs build
|
||||
* comments / docs updates
|
||||
* plugins app cleanup
|
||||
* Merge pull request #61 from joliss/doc
|
||||
* Fix and improve documentation of assert.equal and friends
|
||||
* browser build
|
||||
* doc checkpoint - texture
|
||||
* Update chai-jquery link
|
||||
* Use defined return value of Assertion extension functions
|
||||
* Update utility docs
|
||||
|
||||
1.0.0-rc3 / 2012-05-09
|
||||
==================
|
||||
|
||||
* Merge branch 'feature/rc3'
|
||||
* docs update
|
||||
* browser build
|
||||
* assert test conformity for minor refactor api
|
||||
* assert minor refactor
|
||||
* update util tests for new add/overwrite prop/method format
|
||||
* added chai.Assertion.add/overwrite prop/method for plugin toolbox
|
||||
* add/overwrite prop/method don't make assumptions about context
|
||||
* doc test suite
|
||||
* docs don't need coverage
|
||||
* refactor all simple chains into one forEach loop, for clean documentation
|
||||
* updated npm ignore
|
||||
* remove old docs
|
||||
* docs checkpoint - guide styled
|
||||
* Merge pull request #59 from joliss/doc
|
||||
* Document how to run the test suite
|
||||
* don't need to rebuild docs to view
|
||||
* dep update
|
||||
* docs checkpoint - api section
|
||||
* comment updates for docs
|
||||
* new doc site checkpoint - plugin directory!
|
||||
* Merge pull request #57 from kossnocorp/patch-1
|
||||
* Fix typo: devDependancies → devDependencies
|
||||
* Using message flag in `getMessage` util instead of old `msg` property.
|
||||
* Adding self to package.json contributors.
|
||||
* `getMessage` shouldn't choke on null/omitted messages.
|
||||
* `return this` not necessary in example.
|
||||
* `return this` not necessary in example.
|
||||
* Sinon–Chai has a dash
|
||||
* updated plugins list for docs
|
||||
|
||||
1.0.0-rc2 / 2012-05-06
|
||||
==================
|
||||
|
||||
* Merge branch 'feature/test-cov'
|
||||
* browser build
|
||||
* missing assert tests for ownProperty
|
||||
* appropriate assert equivalent for expect.to.have.property(key, val)
|
||||
* reset AssertionError to include full stack
|
||||
* test for plugin utilities
|
||||
* overwrite Property and Method now ensure chain
|
||||
* version notes in readme
|
||||
|
||||
1.0.0-rc1 / 2012-05-04
|
||||
==================
|
||||
|
||||
* browser build (rc1)
|
||||
* assert match/notMatch tests
|
||||
* assert interface - notMatch, ownProperty, notOwnProperty, ownPropertyVal, ownPropertyNotVal
|
||||
* cleaner should interface export.
|
||||
* added chai.Assertion.prototype._obj (getter) for quick access to object flag
|
||||
* moved almostEqual / almostDeepEqual to stats plugin
|
||||
* added mocha.opts
|
||||
* Add test for `utils.addMethod`
|
||||
* Fix a typo
|
||||
* Add test for `utils.overwriteMethod`
|
||||
* Fix a typo
|
||||
* Browser build
|
||||
* Add undefined assertion
|
||||
* Add null assertion
|
||||
* Fix an issue with `mocha --watch`
|
||||
* travis no longer tests on node 0.4.x
|
||||
* removing unnecissary carbon dep
|
||||
* Merge branch 'feature/plugins-app'
|
||||
* docs build
|
||||
* templates for docs express app for plugin directory
|
||||
* express app for plugin and static serving
|
||||
* added web server deps
|
||||
* Merge pull request #54 from josher19/master
|
||||
* Remove old test.assert code
|
||||
* Use util.inspect instead of inspect for deepAlmostEqual and almostEqual
|
||||
* browser build
|
||||
* Added almostEqual and deepAlmostEqual to assert test suite.
|
||||
* bug - context determinants for utils
|
||||
* dec=0 means rounding, so assert.deepAlmostEqual({pi: 3.1416}, {pi: 3}, 0) is true
|
||||
* wrong travis link
|
||||
* readme updates for version information
|
||||
* travis tests 0.5.x branch as well
|
||||
* [bug] util `addProperty` not correctly exporting
|
||||
* read me version notes
|
||||
* browser build 1.0.0alpha1
|
||||
* not using reserved words in internal assertions. #52
|
||||
* version tick
|
||||
* clean up redundant tests
|
||||
* Merge branch 'refs/heads/0.6.x'
|
||||
* update version tag in package 1.0.0alpha1
|
||||
* browser build
|
||||
* added utility tests to browser specs
|
||||
* beginning utility testing
|
||||
* updated utility comments
|
||||
* utility - overwriteMethod
|
||||
* utility - overwriteProperty
|
||||
* utility - addMethod
|
||||
* utility - addProperty
|
||||
* missing ;
|
||||
* contributors list update
|
||||
* Merge branch 'refs/heads/0.6.x-docs' into 0.6.x
|
||||
* Added guide link to docs. WIP
|
||||
* Include/contain are now both properties and methods
|
||||
* Add an alias annotation
|
||||
* Remove usless function wrapper
|
||||
* Fix a typo
|
||||
* A/an are now both properties and methods
|
||||
* [docs] new site homepage layout / color checkpoint
|
||||
* Ignore IE-specific error properties.
|
||||
* Fixing order of error message test.
|
||||
* New cross-browser `getName` util.
|
||||
* Fixing up `AssertionError` inheritance.
|
||||
* backup docs
|
||||
* Add doctypes
|
||||
* [bug] was still using `constructor.name` in `throw` assertion
|
||||
* [bug] flag Object.create(null) instead of new Object
|
||||
* [test] browser build
|
||||
* [refactor] all usage of Assertion.prototype.assert now uses template tags and flags
|
||||
* [refactor] remove Assertion.prototype.inspect for testable object inspection
|
||||
* [refactor] object to test is now stored in flag, with ssfi and custom message
|
||||
* [bug] flag util - don't return on `set`
|
||||
* [docs] comments for getMessage utility
|
||||
* [feature] getMessage
|
||||
* [feature] testing utilities
|
||||
* [refactor] flag doesn't require `call`
|
||||
* Make order of source files well-defined
|
||||
* Added support for throw(errorInstance).
|
||||
* Use a foolproof method of grabbing an error's name.
|
||||
* Removed constructor.name check from throw.
|
||||
* disabled stackTrack configuration tests until api is stable again
|
||||
* first version of line displayed error for node js (unstable)
|
||||
* refactor core Assertion to use flag utility for negation
|
||||
* added flag utility
|
||||
* tests for assert interface negatives. Closed #42
|
||||
* added assertion negatives that were missing. #42
|
||||
* Support for expected and actual parameters in assert-style error object
|
||||
* chai as promised - readme
|
||||
* Added assert.fail. Closes #40
|
||||
* better error message for assert.operator. Closes #39
|
||||
* [refactor] Assertion#property to use getPathValue property
|
||||
* added getPathValue utility helper
|
||||
* removed todo about browser build
|
||||
* version notes
|
||||
* version bumb 0.6.0
|
||||
* browser build
|
||||
* [refactor] browser compile function to replace with `require('./error')' with 'require('./browser/error')'
|
||||
* [feature] browser uses different error.js
|
||||
* [refactor] error without chai.fail
|
||||
* Assertion & interfaces use new utils helper export
|
||||
* [refactor] primary export for new plugin util usage
|
||||
* added util index.js helper
|
||||
* added 2012 to copyright headers
|
||||
* Added DeepEqual assertions
|
||||
|
||||
0.5.3 / 2012-04-21
|
||||
==================
|
||||
|
||||
* Merge branch 'refs/heads/jgonera-oldbrowsers'
|
||||
* browser build
|
||||
* fixed reserved names for old browsers in interface/assert
|
||||
* fixed reserved names for old browsers in interface/should
|
||||
* fixed: chai.js no longer contains fail()
|
||||
* fixed reserved names for old browsers in Assertion
|
||||
* Merge pull request #49 from joliss/build-order
|
||||
* Make order of source files well-defined
|
||||
* Merge pull request #43 from zzen/patch-1
|
||||
* Support for expected and actual parameters in assert-style error object
|
||||
* chai as promised - readme
|
||||
|
||||
0.5.2 / 2012-03-21
|
||||
==================
|
||||
|
||||
* browser build
|
||||
* Merge branch 'feature/assert-fail'
|
||||
* Added assert.fail. Closes #40
|
||||
* Merge branch 'bug/operator-msg'
|
||||
* better error message for assert.operator. Closes #39
|
||||
* version notes
|
||||
|
||||
0.5.1 / 2012-03-14
|
||||
==================
|
||||
|
||||
* chai.fail no longer exists
|
||||
* Merge branch 'feature/assertdefined'
|
||||
* Added asset#isDefined. Closes #37.
|
||||
* dev docs update for Assertion#assert
|
||||
|
||||
0.5.0 / 2012-03-07
|
||||
==================
|
||||
|
||||
* [bug] on inspect of reg on n 0.4.12
|
||||
* Merge branch 'bug/33-throws'
|
||||
* Merge pull request #35 from logicalparadox/empty-object
|
||||
* browser build
|
||||
* updated #throw docs
|
||||
* Assertion#throw `should` tests updated
|
||||
* Assertion#throw `expect` tests
|
||||
* Should interface supports multiple throw parameters
|
||||
* Update Assertion#throw to support strings and type checks.
|
||||
* Add more tests for `empty` in `should`.
|
||||
* Add more tests for `empty` in `expect`.
|
||||
* Merge branch 'master' into empty-object
|
||||
* don't switch act/exp
|
||||
* Merge pull request #34 from logicalparadox/assert-operator
|
||||
* Update the compiled verison.
|
||||
* Add `assert.operator`.
|
||||
* Notes on messages. #22
|
||||
* browser build
|
||||
* have been test
|
||||
* below tests
|
||||
* Merge branch 'feature/actexp'
|
||||
* browser build
|
||||
* remove unnecessary fail export
|
||||
* full support for actual/expected where relevant
|
||||
* Assertion.assert support expected value
|
||||
* clean up error
|
||||
* Update the compiled version.
|
||||
* Add object & sane arguments support to `Assertion#empty`.
|
||||
|
||||
0.4.2 / 2012-02-28
|
||||
==================
|
||||
|
||||
* fix for `process` not available in browser when used via browserify. Closes #28
|
||||
* Merge pull request #31 from joliss/doc
|
||||
* Document that "should" works in browsers other than IE
|
||||
* Merge pull request #30 from logicalparadox/assert-tests
|
||||
* Update the browser version of chai.
|
||||
* Update `assert.doesNotThrow` test in order to check the use case when type is a string.
|
||||
* Add test for `assert.ifError`.
|
||||
* Falsey -> falsy.
|
||||
* Full coverage for `assert.throws` and `assert.doesNotThrow`.
|
||||
* Add test for `assert.doesNotThrow`.
|
||||
* Add test for `assert.throws`.
|
||||
* Add test for `assert.length`.
|
||||
* Add test for `assert.include`.
|
||||
* Add test for `assert.isBoolean`.
|
||||
* Fix the implementation of `assert.isNumber`.
|
||||
* Add test for `assert.isNumber`.
|
||||
* Add test for `assert.isString`.
|
||||
* Add test for `assert.isArray`.
|
||||
* Add test for `assert.isUndefined`.
|
||||
* Add test for `assert.isNotNull`.
|
||||
* Fix `assert.isNotNull` implementation.
|
||||
* Fix `assert.isNull` implementation.
|
||||
* Add test for `assert.isNull`.
|
||||
* Add test for `assert.notDeepEqual`.
|
||||
* Add test for `assert.deepEqual`.
|
||||
* Add test for `assert.notStrictEqual`.
|
||||
* Add test for `assert.strictEqual`.
|
||||
* Add test for `assert.notEqual`.
|
||||
|
||||
0.4.1 / 2012-02-26
|
||||
==================
|
||||
|
||||
* Merge pull request #27 from logicalparadox/type-fix
|
||||
* Update the browser version.
|
||||
* Add should tests for type checks.
|
||||
* Add function type check test.
|
||||
* Add more type checks tests.
|
||||
* Add test for `new Number` type check.
|
||||
* Fix type of actual checks.
|
||||
|
||||
0.4.0 / 2012-02-25
|
||||
==================
|
||||
|
||||
* docs and readme for upcoming 0.4.0
|
||||
* docs generated
|
||||
* putting coverage and tests for docs in docs/out/support
|
||||
* make docs
|
||||
* makefile copy necessary resources for tests in docs
|
||||
* rename configuration test
|
||||
* Merge pull request #21 from logicalparadox/close-to
|
||||
* Update the browser version.
|
||||
* Update `closeTo()` docs.
|
||||
* Add `Assertion.closeTo()` method.
|
||||
* Add `.closeTo()` should test.
|
||||
* Add `.closeTo()` expect test.
|
||||
* Merge pull request #20 from logicalparadox/satisfy
|
||||
* Update the browser version.
|
||||
* `..` -> `()` in `.satisfy()` should test.
|
||||
* Update example for `.satisfy()`.
|
||||
* Update the compiled browser version.
|
||||
* Add `Assertion.satisfy()` method.
|
||||
* Add `.satisfy()` should test.
|
||||
* Add `.satisfy()` expect test.
|
||||
* Merge pull request #19 from logicalparadox/respond-to
|
||||
* Update the compiled browser version.
|
||||
* Add `respondTo` Assertion.
|
||||
* Add `respondTo` should test.
|
||||
* Add `respondTo` expect test.
|
||||
* Merge branch 'feature/coverage'
|
||||
* mocha coverage support
|
||||
* doc contributors
|
||||
* README contributors
|
||||
|
||||
0.3.4 / 2012-02-23
|
||||
==================
|
||||
|
||||
* inline comment typos for #15
|
||||
* Merge branch 'refs/heads/jeffbski-configErrorStackCompat'
|
||||
* includeStack documentation for all interfaces
|
||||
* suite name more generic
|
||||
* Update test to be compatible with browsers that do not support err.stack
|
||||
* udpated compiled chai.js and added to browser tests
|
||||
* Allow inclusion of stack trace for Assert error messages to be configurable
|
||||
* docs sharing buttons
|
||||
* sinon-chai link
|
||||
* doc updates
|
||||
* read me updates include plugins
|
||||
|
||||
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
|
||||
==================
|
||||
|
||||
* codex version
|
||||
* docs
|
||||
* docs cleanup
|
||||
|
||||
0.3.1 / 2012-02-07
|
||||
==================
|
||||
|
||||
* node 0.4.x compat
|
||||
|
||||
0.3.0 / 2012-02-07
|
||||
==================
|
||||
|
||||
* Merge branch 'feature/03x'
|
||||
* browser build
|
||||
* remove html/json/headers testign
|
||||
* regex error.message testing
|
||||
* tests for using plugins
|
||||
* Merge pull request #11 from domenic/master
|
||||
* Make `chai.use` a no-op if the function has already been used.
|
||||
|
||||
0.2.4 / 2012-02-02
|
||||
==================
|
||||
|
||||
* added in past tense switch for `been`
|
||||
|
||||
0.2.3 / 2012-02-01
|
||||
==================
|
||||
|
||||
* try that again
|
||||
|
||||
0.2.2 / 2012-02-01
|
||||
==================
|
||||
|
||||
* added `been` (past of `be`) alias
|
||||
|
||||
0.2.1 / 2012-01-29
|
||||
==================
|
||||
|
||||
* added Throw, with a capital T, as an alias to `throw` (#7)
|
||||
|
||||
0.2.0 / 2012-01-26
|
||||
==================
|
||||
|
||||
* update gitignore for vim *.swp
|
||||
* Merge branch 'feature/plugins'
|
||||
* browser build
|
||||
* interfaces now work with use
|
||||
* simple .use function. See #9.
|
||||
* readme notice on browser compat
|
||||
|
||||
0.1.7 / 2012-01-25
|
||||
==================
|
||||
|
||||
* added assert tests to browser test runner
|
||||
* browser update
|
||||
* `should` interface patch for primitives support in FF
|
||||
* fix isObject() Thanks @milewise
|
||||
* travis only on branch `master`
|
||||
* add instanceof alias `instanceOf`. #6
|
||||
* some tests for assert module
|
||||
|
||||
0.1.6 / 2012-01-02
|
||||
==================
|
||||
|
||||
* commenting for assert interface
|
||||
* updated codex dep
|
||||
|
||||
0.1.5 / 2012-01-02
|
||||
==================
|
||||
|
||||
* browser tests pass
|
||||
* type in should.not.equal
|
||||
* test for should (not) exist
|
||||
* added should.exist and should.not.exist
|
||||
* browser uses tdd
|
||||
* convert tests to tdd
|
||||
|
||||
0.1.4 / 2011-12-26
|
||||
==================
|
||||
|
||||
* browser lib update for new assert interface compatiblitiy
|
||||
* inspect typos
|
||||
* added strict equal + negatives and ifError
|
||||
* interface assert had doesNotThrow
|
||||
* added should tests to browser
|
||||
* new expect empty tests
|
||||
* should test browser compat
|
||||
* Fix typo for instanceof docs. Closes #3 [ci skip]
|
||||
|
||||
0.1.3 / 2011-12-18
|
||||
==================
|
||||
|
||||
* much cleaner reporting string on error.
|
||||
|
||||
0.1.2 / 2011-12-18
|
||||
==================
|
||||
|
||||
* [docs] for upcoming 0.1.2
|
||||
* browser version built with pre/suffix … all tests passing
|
||||
* make / compile now use prefix/suffix correctly
|
||||
* code clean
|
||||
* prefix/suffix to wrap browser output to prevent conflicts with other `require` methods.
|
||||
* Merge branch 'feature/should4xcompatibility'
|
||||
* compile for browser tests.. all pass
|
||||
* added header/status/html/json
|
||||
* throw tests
|
||||
* should.throw & should.not.throw shortcuts
|
||||
* improved `throw` type detection and messaging
|
||||
* contain is now `include` … keys modifier is now `contain`
|
||||
* removed object() test
|
||||
* removed #respondTo
|
||||
* Merge branch 'bug/2'
|
||||
* replaced __defineGetter__ with defineProperty for all uses
|
||||
* [docs] change mp tracking code
|
||||
* docs site updated with assert (TDD) interface
|
||||
* updated doc comments for assert interface
|
||||
|
||||
0.1.1 / 2011-12-16
|
||||
==================
|
||||
|
||||
* docs ready for upcoming 0.1.1
|
||||
* readme image fixed [ci skip]
|
||||
* more readme tweaks [ci skip]
|
||||
* réadmet image fixed [ci skip]
|
||||
* documentation
|
||||
* codex locked in version 0.0.5
|
||||
* more comments to assertions for docs
|
||||
* assertions fully commented, browser library updated
|
||||
* adding codex as doc dependancy
|
||||
* prepping for docs
|
||||
* assertion component completely commented for documentation
|
||||
* added exist test
|
||||
* var expect outside of browser if check
|
||||
* added keywords to package.json
|
||||
|
||||
0.1.0 / 2011-12-15
|
||||
==================
|
||||
|
||||
* failing on purpose successful .. back to normal
|
||||
* testing travis failure
|
||||
* assert#arguments getter
|
||||
* readme typo
|
||||
* updated README
|
||||
* added travis and npmignore
|
||||
* copyright notices … think i got them all
|
||||
* moved expect interface to own file for consistency
|
||||
* assert ui deepEqual
|
||||
* browser tests expect (all working)
|
||||
* browser version built
|
||||
* chai.fail (should ui)
|
||||
* expect tests browser compatible
|
||||
* tests for should and expect (all pass)
|
||||
* moved fail to primary export
|
||||
* should compatibility testing
|
||||
* within, greaterThan, object, keys,
|
||||
* Aliases
|
||||
* Assertion#property now correctly works with negate and undefined values
|
||||
* error message language matches should
|
||||
* Assertion#respondTo
|
||||
* Assertion now uses inspect util
|
||||
* git ignore node modules
|
||||
* should is exported
|
||||
* AssertionError __proto__ from Error.prototype
|
||||
* add should interface for should.js compatibility
|
||||
* moved eql to until folder and added inspect from (joyent/node)
|
||||
* added mocha for testing
|
||||
* browser build for current api
|
||||
* multiple .property assertions
|
||||
* added deep equal from node
|
||||
|
||||
0.0.2 / 2011-12-07
|
||||
==================
|
||||
|
||||
* cleaner output on error
|
||||
* improved exists detection
|
||||
* package remnant artifact
|
||||
* empty deep equal
|
||||
* test browser build
|
||||
* assertion cleanup
|
||||
* client compile script
|
||||
* makefile
|
||||
* most of the basic assertions
|
||||
* allow no parameters to assertion error
|
||||
* name change
|
||||
* assertion error instance
|
||||
* main exports: assert() & expect()
|
||||
* initialize
|
|
@ -1,99 +0,0 @@
|
|||
[![Chai Documentation](http://chaijs.com/public/img/chai-logo.png)](http://chaijs.com)
|
||||
|
||||
Chai is a BDD / TDD assertion library for [node](http://nodejs.org) and the browser that
|
||||
can be delightfully paired with any javascript testing framework.
|
||||
|
||||
For more information or to download plugins, view the [documentation](http://chaijs.com).
|
||||
|
||||
[![Build Status](https://travis-ci.org/chaijs/chai.svg?branch=master)](https://travis-ci.org/chaijs/chai)
|
||||
|
||||
[![Selenium Test Status](https://saucelabs.com/browser-matrix/chaijs.svg)](https://saucelabs.com/u/chaijs)
|
||||
|
||||
### Plugins
|
||||
|
||||
Chai offers a robust Plugin architecture for extending Chai's assertions and interfaces.
|
||||
|
||||
- Need a plugin? View the [official plugin list](http://chaijs.com/plugins).
|
||||
- Have a plugin and want it listed? Open a Pull Request at [chaijs/chai-docs:plugin.js](https://github.com/chaijs/chai-docs/blob/master/plugins.js#L1-L12).
|
||||
- Want to build a plugin? Read the [plugin api documentation](http://chaijs.com/guide/plugins/).
|
||||
|
||||
### Related Projects
|
||||
|
||||
- [chaijs / assertion-error](https://github.com/chaijs/assertion-error): Custom `Error` constructor thrown upon an assertion failing.
|
||||
- [chaijs / deep-eql](https://github.com/chaijs/deep-eql): Improved deep equality testing for Node.js and the browser.
|
||||
|
||||
### Contributors
|
||||
|
||||
project : chai
|
||||
repo age : 2 years, 3 months ago
|
||||
commits : 756
|
||||
active : 170 days
|
||||
files : 57
|
||||
authors :
|
||||
540 Jake Luer 71.4%
|
||||
79 Veselin Todorov 10.4%
|
||||
43 Domenic Denicola 5.7%
|
||||
6 Ruben Verborgh 0.8%
|
||||
5 George Kats 0.7%
|
||||
5 Jo Liss 0.7%
|
||||
5 Juliusz Gonera 0.7%
|
||||
5 Scott Nonnenberg 0.7%
|
||||
5 leider 0.7%
|
||||
4 John Firebaugh 0.5%
|
||||
4 Max Edmands 0.5%
|
||||
4 Nick Heiner 0.5%
|
||||
4 josher19 0.5%
|
||||
3 Andrei Neculau 0.4%
|
||||
3 Duncan Beevers 0.4%
|
||||
3 Jake Rosoman 0.4%
|
||||
3 Jeff Barczewski 0.4%
|
||||
3 Ryunosuke SATO 0.4%
|
||||
3 Veselin 0.4%
|
||||
2 Bartvds 0.3%
|
||||
2 Edwin Shao 0.3%
|
||||
2 Jakub Nešetřil 0.3%
|
||||
2 Roman Masek 0.3%
|
||||
2 Teddy Cross 0.3%
|
||||
1 Anand Patil 0.1%
|
||||
1 Benjamin Horsleben 0.1%
|
||||
1 Brandon Payton 0.1%
|
||||
1 Chris Connelly 0.1%
|
||||
1 Chun-Yi 0.1%
|
||||
1 DD 0.1%
|
||||
1 Dido Arellano 0.1%
|
||||
1 Jeff Welch 0.1%
|
||||
1 Kilian Ciuffolo 0.1%
|
||||
1 Luís Cardoso 0.1%
|
||||
1 Niklas Närhinen 0.1%
|
||||
1 Paul Miller 0.1%
|
||||
1 Refael Ackermann 0.1%
|
||||
1 Sasha Koss 0.1%
|
||||
1 Victor Costan 0.1%
|
||||
1 Vinay Pulim 0.1%
|
||||
1 Virginie BARDALES 0.1%
|
||||
1 laconbass 0.1%
|
||||
1 piecioshka 0.1%
|
||||
|
||||
## License
|
||||
|
||||
(The MIT License)
|
||||
|
||||
Copyright (c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
|
@ -1,507 +0,0 @@
|
|||
# Release Notes
|
||||
|
||||
## 1.9.2 / 2014-09-29
|
||||
|
||||
The following changes are required if you are upgrading from the previous version:
|
||||
|
||||
- **Users:**
|
||||
- No changes required
|
||||
- **Plugin Developers:**
|
||||
- No changes required
|
||||
- **Core Contributors:**
|
||||
- Refresh `node_modules` folder for updated dependencies.
|
||||
|
||||
### Community Contributions
|
||||
|
||||
- [#264](https://github.com/chaijs/chai/pull/264) Show diff for keys assertions [@cjthompson](https://github.com/cjthompson)
|
||||
- [#267](https://github.com/chaijs/chai/pull/267) Use SVG badges [@shinnn](https://github.com/shinnn)
|
||||
- [#268](https://github.com/chaijs/chai/pull/268) Allow messages to be functions (sinon-compat) [@charlierudolph](https://github.com/charlierudolph)
|
||||
- [#269](https://github.com/chaijs/chai/pull/269) Remove unused argument for #lengthOf [@charlierudolph](https://github.com/charlierudolph)
|
||||
- [#275](https://github.com/chaijs/chai/pull/275) Rewrite pretty-printing HTML elements to prevent throwing internal errors [@DrRataplan](https://github.com/DrRataplan)
|
||||
- [#277](https://github.com/chaijs/chai/pull/277) Fix assert documentation for #sameMembers [@charlierudolph](https://github.com/charlierudolph)
|
||||
- [#279](https://github.com/chaijs/chai/pull/279) closeTo should check value's type before assertion [@mohayonao](https://github.com/mohayonao)
|
||||
- [#289](https://github.com/chaijs/chai/pull/289) satisfy is called twice [@charlierudolph](https://github.com/charlierudolph)
|
||||
- [#292](https://github.com/chaijs/chai/pull/292) resolve conflicts with node-webkit and global usage [@boneskull](https://github.com/boneskull)
|
||||
|
||||
Thank you to all who took time to contribute!
|
||||
|
||||
## 1.9.1 / 2014-03-19
|
||||
|
||||
The following changes are required if you are upgrading from the previous version:
|
||||
|
||||
- **Users:**
|
||||
- Migrate configuration options to new interface. (see notes)
|
||||
- **Plugin Developers:**
|
||||
- No changes required
|
||||
- **Core Contributors:**
|
||||
- Refresh `node_modules` folder for updated dependencies.
|
||||
|
||||
### Configuration
|
||||
|
||||
There have been requests for changes and additions to the configuration mechanisms
|
||||
and their impact in the Chai architecture. As such, we have decoupled the
|
||||
configuration from the `Assertion` constructor. This not only allows for centralized
|
||||
configuration, but will allow us to shift the responsibility from the `Assertion`
|
||||
constructor to the `assert` interface in future releases.
|
||||
|
||||
These changes have been implemented in a non-breaking way, but a depretiation
|
||||
warning will be presented to users until they migrate. The old config method will
|
||||
be removed in either `v1.11.0` or `v2.0.0`, whichever comes first.
|
||||
|
||||
#### Quick Migration
|
||||
|
||||
```js
|
||||
// change this:
|
||||
chai.Assertion.includeStack = true;
|
||||
chai.Assertion.showDiff = false;
|
||||
|
||||
// ... to this:
|
||||
chai.config.includeStack = true;
|
||||
chai.config.showDiff = false;
|
||||
```
|
||||
|
||||
#### All Config Options
|
||||
|
||||
##### config.includeStack
|
||||
|
||||
- **@param** _{Boolean}_
|
||||
- **@default** `false`
|
||||
|
||||
User configurable property, influences whether stack trace is included in
|
||||
Assertion error message. Default of `false` suppresses stack trace in the error
|
||||
message.
|
||||
|
||||
##### config.showDiff
|
||||
|
||||
- **@param** _{Boolean}_
|
||||
- **@default** `true`
|
||||
|
||||
User configurable property, influences whether or not the `showDiff` flag
|
||||
should be included in the thrown AssertionErrors. `false` will always be `false`;
|
||||
`true` will be true when the assertion has requested a diff be shown.
|
||||
|
||||
##### config.truncateThreshold **(NEW)**
|
||||
|
||||
- **@param** _{Number}_
|
||||
- **@default** `40`
|
||||
|
||||
User configurable property, sets length threshold for actual and expected values
|
||||
in assertion errors. If this threshold is exceeded, the value is truncated.
|
||||
|
||||
Set it to zero if you want to disable truncating altogether.
|
||||
|
||||
```js
|
||||
chai.config.truncateThreshold = 0; // disable truncating
|
||||
```
|
||||
|
||||
### Community Contributions
|
||||
|
||||
- [#228](https://github.com/chaijs/chai/pull/228) Deep equality check for memebers. [@duncanbeevers](https://github.com/duncanbeevers)
|
||||
- [#247](https://github.com/chaijs/chai/pull/247) Proofreading. [@didorellano](https://github.com/didoarellano)
|
||||
- [#244](https://github.com/chaijs/chai/pull/244) Fix `contain`/`include` 1.9.0 regression. [@leider](https://github.com/leider)
|
||||
- [#233](https://github.com/chaijs/chai/pull/233) Improvements to `ssfi` for `assert` interface. [@refack](https://github.com/refack)
|
||||
- [#251](https://github.com/chaijs/chai/pull/251) New config option: object display threshold. [@romario333](https://github.com/romario333)
|
||||
|
||||
Thank you to all who took time to contribute!
|
||||
|
||||
### Other Bug Fixes
|
||||
|
||||
- [#183](https://github.com/chaijs/chai/issues/183) Allow `undefined` for actual. (internal api)
|
||||
- Update Karam(+plugins)/Istanbul to most recent versions.
|
||||
|
||||
## 1.9.0 / 2014-01-29
|
||||
|
||||
The following changes are required if you are upgrading from the previous version:
|
||||
|
||||
- **Users:**
|
||||
- No changes required
|
||||
- **Plugin Developers:**
|
||||
- Review [#219](https://github.com/chaijs/chai/pull/219).
|
||||
- **Core Contributors:**
|
||||
- Refresh `node_modules` folder for updated dependencies.
|
||||
|
||||
### Community Contributions
|
||||
|
||||
- [#202](https://github.com/chaijs/chai/pull/201) Improve error message for .throw(). [@andreineculau](https://github.com/andreineculau)
|
||||
- [#217](https://github.com/chaijs/chai/pull/217) Chai tests can be run with `--watch`. [@demands](https://github.com/demands)
|
||||
- [#219](https://github.com/chaijs/chai/pull/219) Add overwriteChainableMethod utility. [@demands](https://github.com/demands)
|
||||
- [#224](https://github.com/chaijs/chai/pull/224) Return error on throw method to chain on error properties. [@vbardales](https://github.com/vbardales)
|
||||
- [#226](https://github.com/chaijs/chai/pull/226) Add `has` to language chains. [@duncanbeevers](https://github.com/duncanbeevers)
|
||||
- [#230](https://github.com/chaijs/chai/pull/230) Support `{a:1,b:2}.should.include({a:1})` [@jkroso](https://github.com/jkroso)
|
||||
- [#231](https://github.com/chaijs/chai/pull/231) Update Copyright notices to 2014 [@duncanbeevers](https://github.com/duncanbeevers)
|
||||
- [#232](https://github.com/chaijs/chai/pull/232) Avoid error instantiation if possible on assert.throws. [@laconbass](https://github.com/laconbass)
|
||||
|
||||
Thank you to all who took time to contribute!
|
||||
|
||||
### Other Bug Fixes
|
||||
|
||||
- [#225](https://github.com/chaijs/chai/pull/225) Improved AMD wrapper provided by upstream `component(1)`.
|
||||
- [#185](https://github.com/chaijs/chai/issues/185) `assert.throws()` returns thrown error for further assertions.
|
||||
- [#237](https://github.com/chaijs/chai/pull/237) Remove coveralls/jscoverage, include istanbul coverage report in travis test.
|
||||
- Update Karma and Sauce runner versions for consistent CI results. No more karma@canary.
|
||||
|
||||
## 1.8.1 / 2013-10-10
|
||||
|
||||
The following changes are required if you are upgrading from the previous version:
|
||||
|
||||
- **Users:**
|
||||
- Refresh `node_modules` folder for updated dependencies.
|
||||
- **Plugin Developers:**
|
||||
- No changes required
|
||||
- **Core Contributors:**
|
||||
- Refresh `node_modules` folder for updated dependencies.
|
||||
|
||||
### Browserify
|
||||
|
||||
This is a small patch that updates the dependency tree so browserify users can install
|
||||
chai. (Remove conditional requires)
|
||||
|
||||
## 1.8.0 / 2013-09-18
|
||||
|
||||
The following changes are required if you are upgrading from the previous version:
|
||||
|
||||
- **Users:**
|
||||
- See `deep.equal` notes.
|
||||
- **Plugin Developers:**
|
||||
- No changes required
|
||||
- **Core Contributors:**
|
||||
- Refresh `node_modules` folder for updated dependencies.
|
||||
|
||||
### Deep Equals
|
||||
|
||||
This version of Chai focused on a overhaul to the deep equal utility. The code for this
|
||||
tool has been removed from the core lib and can now be found at:
|
||||
[chai / deep-eql](https://github.com/chaijs/deep-eql). As stated in previous releases,
|
||||
this is part of a larger initiative to provide transparency, independent testing, and coverage for
|
||||
some of the more complicated internal tools.
|
||||
|
||||
For the most part `.deep.equal` will behave the same as it has. However, in order to provide a
|
||||
consistent ruleset across all types being tested, the following changes have been made and _might_
|
||||
require changes to your tests.
|
||||
|
||||
**1.** Strict equality for non-traversable nodes according to [egal](http://wiki.ecmascript.org/doku.php?id=harmony:egal).
|
||||
|
||||
_Previously:_ Non-traversable equal via `===`.
|
||||
|
||||
```js
|
||||
expect(NaN).to.deep.equal(NaN);
|
||||
expect(-0).to.not.deep.equal(+0);
|
||||
```
|
||||
|
||||
**2.** Arguments are not Arrays (and all types must be equal):
|
||||
|
||||
_Previously:_ Some crazy nonsense that led to empty arrays deep equaling empty objects deep equaling dates.
|
||||
|
||||
```js
|
||||
expect(arguments).to.not.deep.equal([]);
|
||||
expect(Array.prototype.slice.call(arguments)).to.deep.equal([]);
|
||||
```
|
||||
|
||||
- [#156](https://github.com/chaijs/chai/issues/156) Empty object is eql to empty array
|
||||
- [#192](https://github.com/chaijs/chai/issues/192) empty object is eql to a Date object
|
||||
- [#194](https://github.com/chaijs/chai/issues/194) refactor deep-equal utility
|
||||
|
||||
### CI and Browser Testing
|
||||
|
||||
Chai now runs the browser CI suite using [Karma](http://karma-runner.github.io/) directed at
|
||||
[SauceLabs](https://saucelabs.com/). This means we get to know where our browser support stands...
|
||||
and we get a cool badge:
|
||||
|
||||
[![Selenium Test Status](https://saucelabs.com/browser-matrix/logicalparadox.svg)](https://saucelabs.com/u/logicalparadox)
|
||||
|
||||
Look for the list of browsers/versions to expand over the coming releases.
|
||||
|
||||
- [#195](https://github.com/chaijs/chai/issues/195) karma test framework
|
||||
|
||||
## 1.7.2 / 2013-06-27
|
||||
|
||||
The following changes are required if you are upgrading from the previous version:
|
||||
|
||||
- **Users:**
|
||||
- No changes required.
|
||||
- **Plugin Developers:**
|
||||
- No changes required
|
||||
- **Core Contributors:**
|
||||
- Refresh `node_modules` folder for updated dependencies.
|
||||
|
||||
### Coverage Reporting
|
||||
|
||||
Coverage reporting has always been available for core-developers but the data has never been published
|
||||
for our end users. In our ongoing effort to improve accountability this data will now be published via
|
||||
the [coveralls.io](https://coveralls.io/) service. A badge has been added to the README and the full report
|
||||
can be viewed online at the [chai coveralls project](https://coveralls.io/r/chaijs/chai). Furthermore, PRs
|
||||
will receive automated messages indicating how their PR impacts test coverage. This service is tied to TravisCI.
|
||||
|
||||
### Other Fixes
|
||||
|
||||
- [#175](https://github.com/chaijs/chai/issues/175) Add `bower.json`. (Fix ignore all)
|
||||
|
||||
## 1.7.1 / 2013-06-24
|
||||
|
||||
The following changes are required if you are upgrading from the previous version:
|
||||
|
||||
- **Users:**
|
||||
- No changes required.
|
||||
- **Plugin Developers:**
|
||||
- No changes required
|
||||
- **Core Contributors:**
|
||||
- Refresh `node_modules` folder for updated dependencies.
|
||||
|
||||
### Official Bower Support
|
||||
|
||||
Support has been added for the Bower Package Manager ([bower.io])(http://bower.io/). Though
|
||||
Chai could be installed via Bower in the past, this update adds official support via the `bower.json`
|
||||
specification file.
|
||||
|
||||
- [#175](https://github.com/chaijs/chai/issues/175) Add `bower.json`.
|
||||
|
||||
## 1.7.0 / 2013-06-17
|
||||
|
||||
The following changes are required if you are upgrading from the previous version:
|
||||
|
||||
- **Users:**
|
||||
- No changes required.
|
||||
- **Plugin Developers:**
|
||||
- Review AssertionError update notice.
|
||||
- **Core Contributors:**
|
||||
- Refresh `node_modules` folder for updated dependencies.
|
||||
|
||||
### AssertionError Update Notice
|
||||
|
||||
Chai now uses [chaijs/assertion-error](https://github.com/chaijs/assertion-error) instead an internal
|
||||
constructor. This will allow for further iteration/experimentation of the AssertionError constructor
|
||||
independant of Chai. Future plans include stack parsing for callsite support.
|
||||
|
||||
This update constructor has a different constructor param signature that conforms more with the standard
|
||||
`Error` object. If your plugin throws and `AssertionError` directly you will need to update your plugin
|
||||
with the new signature.
|
||||
|
||||
```js
|
||||
var AssertionError = require('chai').AssertionError;
|
||||
|
||||
/**
|
||||
* previous
|
||||
*
|
||||
* @param {Object} options
|
||||
*/
|
||||
|
||||
throw new AssertionError({
|
||||
message: 'An assertion error occurred'
|
||||
, actual: actual
|
||||
, expect: expect
|
||||
, startStackFunction: arguments.callee
|
||||
, showStack: true
|
||||
});
|
||||
|
||||
/**
|
||||
* new
|
||||
*
|
||||
* @param {String} message
|
||||
* @param {Object} options
|
||||
* @param {Function} start stack function
|
||||
*/
|
||||
|
||||
throw new AssertionError('An assertion error occurred', {
|
||||
actual: actual
|
||||
, expect: expect
|
||||
, showStack: true
|
||||
}, arguments.callee);
|
||||
|
||||
// other signatures
|
||||
throw new AssertionError('An assertion error occurred');
|
||||
throw new AssertionError('An assertion error occurred', null, arguments.callee);
|
||||
```
|
||||
|
||||
#### External Dependencies
|
||||
|
||||
This is the first non-developement dependency for Chai. As Chai continues to evolve we will begin adding
|
||||
more; the next will likely be improved type detection and deep equality. With Chai's userbase continually growing
|
||||
there is an higher need for accountability and documentation. External dependencies will allow us to iterate and
|
||||
test on features independent from our interfaces.
|
||||
|
||||
Note: The browser packaged version `chai.js` will ALWAYS contain all dependencies needed to run Chai.
|
||||
|
||||
### Community Contributions
|
||||
|
||||
- [#169](https://github.com/chaijs/chai/pull/169) Fix deep equal comparison for Date/Regexp types. [@katsgeorgeek](https://github.com/katsgeorgeek)
|
||||
- [#171](https://github.com/chaijs/chai/pull/171) Add `assert.notOk()`. [@Bartvds](https://github.com/Bartvds)
|
||||
- [#173](https://github.com/chaijs/chai/pull/173) Fix `inspect` utility. [@domenic](https://github.com/domenic)
|
||||
|
||||
Thank you to all who took the time to contribute!
|
||||
|
||||
## 1.6.1 / 2013-06-05
|
||||
|
||||
The following changes are required if you are upgrading from the previous version:
|
||||
|
||||
- **Users:**
|
||||
- No changes required.
|
||||
- **Plugin Developers:**
|
||||
- No changes required.
|
||||
- **Core Contributors:**
|
||||
- Refresh `node_modules` folder for updated developement dependencies.
|
||||
|
||||
### Deep Equality
|
||||
|
||||
Regular Expressions are now tested as part of all deep equality assertions. In previous versions
|
||||
they silently passed for all scenarios. Thanks to [@katsgeorgeek](https://github.com/katsgeorgeek) for the contribution.
|
||||
|
||||
### Community Contributions
|
||||
|
||||
- [#161](https://github.com/chaijs/chai/pull/161) Fix documented name for assert interface's isDefined method. [@brandonpayton](https://github.com/brandonpayton)
|
||||
- [#168](https://github.com/chaijs/chai/pull/168) Fix comparison equality of two regexps for when using deep equality. [@katsgeorgeek](https://github.com/katsgeorgeek)
|
||||
|
||||
Thank you to all who took the time to contribute!
|
||||
|
||||
### Additional Notes
|
||||
|
||||
- Mocha has been locked at version `1.8.x` to ensure `mocha-phantomjs` compatibility.
|
||||
|
||||
## 1.6.0 / 2013-04-29
|
||||
|
||||
The following changes are required if you are upgrading from the previous version:
|
||||
|
||||
- **Users:**
|
||||
- No changes required.
|
||||
- **Plugin Developers:**
|
||||
- No changes required.
|
||||
- **Core Contributors:**
|
||||
- Refresh `node_modules` folder for updated developement dependencies.
|
||||
|
||||
### New Assertions
|
||||
|
||||
#### Array Members Inclusion
|
||||
|
||||
Asserts that the target is a superset of `set`, or that the target and `set` have the same members.
|
||||
Order is not taken into account. Thanks to [@NickHeiner](https://github.com/NickHeiner) for the contribution.
|
||||
|
||||
```js
|
||||
// (expect/should) full set
|
||||
expect([4, 2]).to.have.members([2, 4]);
|
||||
expect([5, 2]).to.not.have.members([5, 2, 1]);
|
||||
|
||||
// (expect/should) inclusion
|
||||
expect([1, 2, 3]).to.include.members([3, 2]);
|
||||
expect([1, 2, 3]).to.not.include.members([3, 2, 8]);
|
||||
|
||||
// (assert) full set
|
||||
assert.sameMembers([ 1, 2, 3 ], [ 2, 1, 3 ], 'same members');
|
||||
|
||||
// (assert) inclusion
|
||||
assert.includeMembers([ 1, 2, 3 ], [ 2, 1 ], 'include members');
|
||||
|
||||
```
|
||||
|
||||
#### Non-inclusion for Assert Interface
|
||||
|
||||
Most `assert` functions have a negative version, like `instanceOf()` has a corresponding `notInstaceOf()`.
|
||||
However `include()` did not have a corresponding `notInclude()`. This has been added.
|
||||
|
||||
```js
|
||||
assert.notInclude([ 1, 2, 3 ], 8);
|
||||
assert.notInclude('foobar', 'baz');
|
||||
```
|
||||
|
||||
### Community Contributions
|
||||
|
||||
- [#140](https://github.com/chaijs/chai/pull/140) Restore `call`/`apply` methods for plugin interface. [@RubenVerborgh](https://github.com/RubenVerborgh)
|
||||
- [#148](https://github.com/chaijs/chai/issues/148)/[#153](https://github.com/chaijs/chai/pull/153) Add `members` and `include.members` assertions. [#NickHeiner](https://github.com/NickHeiner)
|
||||
|
||||
Thank you to all who took time to contribute!
|
||||
|
||||
### Other Bug Fixes
|
||||
|
||||
- [#142](https://github.com/chaijs/chai/issues/142) `assert#include` will no longer silently pass on wrong-type haystack.
|
||||
- [#158](https://github.com/chaijs/chai/issues/158) `assert#notInclude` has been added.
|
||||
- Travis-CI now tests Node.js `v0.10.x`. Support for `v0.6.x` has been removed. `v0.8.x` is still tested as before.
|
||||
|
||||
## 1.5.0 / 2013-02-03
|
||||
|
||||
### Migration Requirements
|
||||
|
||||
The following changes are required if you are upgrading from the previous version:
|
||||
|
||||
- **Users:**
|
||||
- _Update [2013-02-04]:_ Some users may notice a small subset of deep equality assertions will no longer pass. This is the result of
|
||||
[#120](https://github.com/chaijs/chai/issues/120), an improvement to our deep equality algorithm. Users will need to revise their assertions
|
||||
to be more granular should this occur. Further information: [#139](https://github.com/chaijs/chai/issues/139).
|
||||
- **Plugin Developers:**
|
||||
- No changes required.
|
||||
- **Core Contributors:**
|
||||
- Refresh `node_modules` folder for updated developement dependencies.
|
||||
|
||||
### Community Contributions
|
||||
|
||||
- [#126](https://github.com/chaijs/chai/pull/126): Add `eqls` alias for `eql`. [@RubenVerborgh](https://github.com/RubenVerborgh)
|
||||
- [#127](https://github.com/chaijs/chai/issues/127): Performance refactor for chainable methods. [@RubenVerborgh](https://github.com/RubenVerborgh)
|
||||
- [#133](https://github.com/chaijs/chai/pull/133): Assertion `.throw` support for primitives. [@RubenVerborgh](https://github.com/RubenVerborgh)
|
||||
- [#137](https://github.com/chaijs/chai/issues/137): Assertion `.throw` support for empty messages. [@timnew](https://github.com/timnew)
|
||||
- [#136](https://github.com/chaijs/chai/pull/136): Fix backward negation messages when using `.above()` and `.below()`. [@whatthejeff](https://github.com/whatthejeff)
|
||||
|
||||
Thank you to all who took time to contribute!
|
||||
|
||||
### Other Bug Fixes
|
||||
|
||||
- Improve type detection of `.a()`/`.an()` to work in cross-browser scenarios.
|
||||
- [#116](https://github.com/chaijs/chai/issues/116): `.throw()` has cleaner display of errors when WebKit browsers.
|
||||
- [#120](https://github.com/chaijs/chai/issues/120): `.eql()` now works to compare dom nodes in browsers.
|
||||
|
||||
|
||||
### Usage Updates
|
||||
|
||||
#### For Users
|
||||
|
||||
**1. Component Support:** Chai now included the proper configuration to be installed as a
|
||||
[component](https://github.com/component/component). Component users are encouraged to consult
|
||||
[chaijs.com](http://chaijs.com) for the latest version number as using the master branch
|
||||
does not gaurantee stability.
|
||||
|
||||
```js
|
||||
// relevant component.json
|
||||
devDependencies: {
|
||||
"chaijs/chai": "1.5.0"
|
||||
}
|
||||
```
|
||||
|
||||
Alternatively, bleeding-edge is available:
|
||||
|
||||
$ component install chaijs/chai
|
||||
|
||||
**2. Configurable showDiff:** Some test runners (such as [mocha](http://visionmedia.github.com/mocha/))
|
||||
include support for showing the diff of strings and objects when an equality error occurs. Chai has
|
||||
already included support for this, however some users may not prefer this display behavior. To revert to
|
||||
no diff display, the following configuration is available:
|
||||
|
||||
```js
|
||||
chai.Assertion.showDiff = false; // diff output disabled
|
||||
chai.Assertion.showDiff = true; // default, diff output enabled
|
||||
```
|
||||
|
||||
#### For Plugin Developers
|
||||
|
||||
**1. New Utility - type**: The new utility `.type()` is available as a better implementation of `typeof`
|
||||
that can be used cross-browser. It handles the inconsistencies of Array, `null`, and `undefined` detection.
|
||||
|
||||
- **@param** _{Mixed}_ object to detect type of
|
||||
- **@return** _{String}_ object type
|
||||
|
||||
```js
|
||||
chai.use(function (c, utils) {
|
||||
// some examples
|
||||
utils.type({}); // 'object'
|
||||
utils.type(null); // `null'
|
||||
utils.type(undefined); // `undefined`
|
||||
utils.type([]); // `array`
|
||||
});
|
||||
```
|
||||
|
||||
#### For Core Contributors
|
||||
|
||||
**1. Browser Testing**: Browser testing of the `./chai.js` file is now available in the command line
|
||||
via PhantomJS. `make test` and Travis-CI will now also rebuild and test `./chai.js`. Consequently, all
|
||||
pull requests will now be browser tested in this way.
|
||||
|
||||
_Note: Contributors opening pull requests should still NOT include the browser build._
|
||||
|
||||
**2. SauceLabs Testing**: Early SauceLab support has been enabled with the file `./support/mocha-cloud.js`.
|
||||
Those interested in trying it out should create a free [Open Sauce](https://saucelabs.com/signup/plan) account
|
||||
and include their credentials in `./test/auth/sauce.json`.
|
|
@ -1,27 +0,0 @@
|
|||
{
|
||||
"name": "chai"
|
||||
, "version": "1.9.2"
|
||||
, "description": "BDD/TDD assertion library for node.js and the browser. Test framework agnostic."
|
||||
, "license": "MIT"
|
||||
, "keywords": [
|
||||
"test"
|
||||
, "assertion"
|
||||
, "assert"
|
||||
, "testing"
|
||||
, "chai"
|
||||
]
|
||||
, "main": "chai.js"
|
||||
, "ignore": [
|
||||
"build"
|
||||
, "components"
|
||||
, "lib"
|
||||
, "node_modules"
|
||||
, "support"
|
||||
, "test"
|
||||
, "index.js"
|
||||
, "Makefile"
|
||||
, ".*"
|
||||
]
|
||||
, "dependencies": {}
|
||||
, "devDependencies": {}
|
||||
}
|
|
@ -1,49 +0,0 @@
|
|||
{
|
||||
"name": "chai"
|
||||
, "repo": "chaijs/chai"
|
||||
, "version": "1.9.2"
|
||||
, "description": "BDD/TDD assertion library for node.js and the browser. Test framework agnostic."
|
||||
, "license": "MIT"
|
||||
, "keywords": [
|
||||
"test"
|
||||
, "assertion"
|
||||
, "assert"
|
||||
, "testing"
|
||||
, "chai"
|
||||
]
|
||||
, "main": "index.js"
|
||||
, "scripts": [
|
||||
"index.js"
|
||||
, "lib/chai.js"
|
||||
, "lib/chai/assertion.js"
|
||||
, "lib/chai/config.js"
|
||||
, "lib/chai/core/assertions.js"
|
||||
, "lib/chai/interface/assert.js"
|
||||
, "lib/chai/interface/expect.js"
|
||||
, "lib/chai/interface/should.js"
|
||||
, "lib/chai/utils/addChainableMethod.js"
|
||||
, "lib/chai/utils/addMethod.js"
|
||||
, "lib/chai/utils/addProperty.js"
|
||||
, "lib/chai/utils/flag.js"
|
||||
, "lib/chai/utils/getActual.js"
|
||||
, "lib/chai/utils/getEnumerableProperties.js"
|
||||
, "lib/chai/utils/getMessage.js"
|
||||
, "lib/chai/utils/getName.js"
|
||||
, "lib/chai/utils/getPathValue.js"
|
||||
, "lib/chai/utils/getProperties.js"
|
||||
, "lib/chai/utils/index.js"
|
||||
, "lib/chai/utils/inspect.js"
|
||||
, "lib/chai/utils/objDisplay.js"
|
||||
, "lib/chai/utils/overwriteMethod.js"
|
||||
, "lib/chai/utils/overwriteProperty.js"
|
||||
, "lib/chai/utils/overwriteChainableMethod.js"
|
||||
, "lib/chai/utils/test.js"
|
||||
, "lib/chai/utils/transferFlags.js"
|
||||
, "lib/chai/utils/type.js"
|
||||
]
|
||||
, "dependencies": {
|
||||
"chaijs/assertion-error": "1.0.0"
|
||||
, "chaijs/deep-eql": "0.1.3"
|
||||
}
|
||||
, "development": {}
|
||||
}
|
|
@ -1,28 +0,0 @@
|
|||
module.exports = function(config) {
|
||||
config.set({
|
||||
frameworks: [ 'mocha' ]
|
||||
, files: [
|
||||
'build/build.js'
|
||||
, 'test/bootstrap/karma.js'
|
||||
, 'test/*.js'
|
||||
]
|
||||
, reporters: [ 'progress' ]
|
||||
, colors: true
|
||||
, logLevel: config.LOG_INFO
|
||||
, autoWatch: false
|
||||
, browsers: [ 'PhantomJS' ]
|
||||
, browserDisconnectTimeout: 10000
|
||||
, browserDisconnectTolerance: 2
|
||||
, browserNoActivityTimeout: 20000
|
||||
, singleRun: true
|
||||
});
|
||||
|
||||
switch (process.env.CHAI_TEST_ENV) {
|
||||
case 'sauce':
|
||||
require('./karma.sauce')(config);
|
||||
break;
|
||||
default:
|
||||
// ...
|
||||
break;
|
||||
};
|
||||
};
|
|
@ -1,41 +0,0 @@
|
|||
var version = require('./package.json').version;
|
||||
var ts = new Date().getTime();
|
||||
|
||||
module.exports = function(config) {
|
||||
var auth;
|
||||
|
||||
try {
|
||||
auth = require('./test/auth/index');
|
||||
} catch(ex) {
|
||||
auth = {};
|
||||
auth.SAUCE_USERNAME = process.env.SAUCE_USERNAME || null;
|
||||
auth.SAUCE_ACCESS_KEY = process.env.SAUCE_ACCESS_KEY || null;
|
||||
}
|
||||
|
||||
if (!auth.SAUCE_USERNAME || !auth.SAUCE_ACCESS_KEY) return;
|
||||
if (process.env.SKIP_SAUCE) return;
|
||||
|
||||
var branch = process.env.TRAVIS_BRANCH || 'local'
|
||||
var browserConfig = require('./sauce.browsers');
|
||||
var browsers = Object.keys(browserConfig);
|
||||
var tags = [ 'chaijs_' + version, auth.SAUCE_USERNAME + '@' + branch ];
|
||||
var tunnel = process.env.TRAVIS_JOB_NUMBER || ts;
|
||||
|
||||
if (process.env.TRAVIS_JOB_NUMBER) {
|
||||
tags.push('travis@' + process.env.TRAVIS_JOB_NUMBER);
|
||||
}
|
||||
|
||||
config.browsers = config.browsers.concat(browsers);
|
||||
config.customLaunchers = browserConfig;
|
||||
config.reporters.push('saucelabs');
|
||||
config.transports = [ 'xhr-polling' ];
|
||||
|
||||
config.sauceLabs = {
|
||||
username: auth.SAUCE_USERNAME
|
||||
, accessKey: auth.SAUCE_ACCESS_KEY
|
||||
, startConnect: true
|
||||
, tags: tags
|
||||
, testName: 'ChaiJS'
|
||||
, tunnelIdentifier: tunnel
|
||||
};
|
||||
};
|
|
@ -1,42 +0,0 @@
|
|||
{
|
||||
"author": "Jake Luer <jake@alogicalparadox.com>",
|
||||
"name": "chai",
|
||||
"description": "BDD/TDD assertion library for node.js and the browser. Test framework agnostic.",
|
||||
"keywords": [ "test", "assertion", "assert", "testing", "chai" ],
|
||||
"homepage": "http://chaijs.com",
|
||||
"license": "MIT",
|
||||
"contributors": [
|
||||
"Jake Luer <jake@alogicalparadox.com>",
|
||||
"Domenic Denicola <domenic@domenicdenicola.com> (http://domenicdenicola.com)",
|
||||
"Veselin Todorov <hi@vesln.com>",
|
||||
"John Firebaugh <john.firebaugh@gmail.com>"
|
||||
],
|
||||
"version": "1.9.2",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/chaijs/chai"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/chaijs/chai/issues"
|
||||
},
|
||||
"main": "./index",
|
||||
"scripts": {
|
||||
"test": "make test"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"assertion-error": "1.0.0"
|
||||
, "deep-eql": "0.1.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"component": "*"
|
||||
, "karma": "0.12.x"
|
||||
, "karma-mocha": "*"
|
||||
, "karma-sauce-launcher": "0.2.x"
|
||||
, "karma-phantomjs-launcher": "0.1.1"
|
||||
, "mocha": "1.21.x"
|
||||
, "istanbul": "0.2.x"
|
||||
}
|
||||
}
|
|
@ -1,128 +0,0 @@
|
|||
|
||||
/*!
|
||||
* Chrome
|
||||
*/
|
||||
|
||||
exports['SL_Chrome'] = {
|
||||
base: 'SauceLabs'
|
||||
, browserName: 'chrome'
|
||||
};
|
||||
|
||||
/*!
|
||||
* Firefox
|
||||
*/
|
||||
|
||||
/*!
|
||||
* TODO: Karma doesn't seem to like this, though sauce boots its up
|
||||
*
|
||||
|
||||
exports['SL_Firefox_23'] = {
|
||||
base: 'SauceLabs'
|
||||
, browserName: 'firefox'
|
||||
, platform: 'Windows XP'
|
||||
, version: '23'
|
||||
};
|
||||
|
||||
*/
|
||||
|
||||
exports['SL_Firefox_22'] = {
|
||||
base: 'SauceLabs'
|
||||
, browserName: 'firefox'
|
||||
, platform: 'Windows 7'
|
||||
, version: '22'
|
||||
};
|
||||
|
||||
/*!
|
||||
* Opera
|
||||
*/
|
||||
|
||||
exports['SL_Opera_12'] = {
|
||||
base: 'SauceLabs'
|
||||
, browserName: 'opera'
|
||||
, platform: 'Windows 7'
|
||||
, version: '12'
|
||||
};
|
||||
|
||||
exports['SL_Opera_11'] = {
|
||||
base: 'SauceLabs'
|
||||
, browserName: 'opera'
|
||||
, platform: 'Windows 7'
|
||||
, version: '11'
|
||||
};
|
||||
|
||||
/*!
|
||||
* Internet Explorer
|
||||
*/
|
||||
|
||||
exports['SL_IE_10'] = {
|
||||
base: 'SauceLabs'
|
||||
, browserName: 'internet explorer'
|
||||
, platform: 'Windows 2012'
|
||||
, version: '10'
|
||||
};
|
||||
|
||||
/*!
|
||||
* Safari
|
||||
*/
|
||||
|
||||
exports['SL_Safari_6'] = {
|
||||
base: 'SauceLabs'
|
||||
, browserName: 'safari'
|
||||
, platform: 'Mac 10.8'
|
||||
, version: '6'
|
||||
};
|
||||
|
||||
exports['SL_Safari_5'] = {
|
||||
base: 'SauceLabs'
|
||||
, browserName: 'safari'
|
||||
, platform: 'Mac 10.6'
|
||||
, version: '5'
|
||||
};
|
||||
|
||||
/*!
|
||||
* iPhone
|
||||
*/
|
||||
|
||||
/*!
|
||||
* TODO: These take forever to boot or shut down. Causes timeout.
|
||||
*
|
||||
|
||||
exports['SL_iPhone_6'] = {
|
||||
base: 'SauceLabs'
|
||||
, browserName: 'iphone'
|
||||
, platform: 'Mac 10.8'
|
||||
, version: '6'
|
||||
};
|
||||
|
||||
exports['SL_iPhone_5-1'] = {
|
||||
base: 'SauceLabs'
|
||||
, browserName: 'iphone'
|
||||
, platform: 'Mac 10.8'
|
||||
, version: '5.1'
|
||||
};
|
||||
|
||||
exports['SL_iPhone_5'] = {
|
||||
base: 'SauceLabs'
|
||||
, browserName: 'iphone'
|
||||
, platform: 'Mac 10.6'
|
||||
, version: '5'
|
||||
};
|
||||
|
||||
*/
|
||||
|
||||
/*!
|
||||
* Android
|
||||
*/
|
||||
|
||||
/*!
|
||||
* TODO: fails because of error serialization
|
||||
*
|
||||
|
||||
exports['SL_Android_4'] = {
|
||||
base: 'SauceLabs'
|
||||
, browserName: 'android'
|
||||
, platform: 'Linux'
|
||||
, version: '4'
|
||||
};
|
||||
|
||||
*/
|
|
@ -1,57 +0,0 @@
|
|||
{
|
||||
"name": "mocha",
|
||||
"version": "2.0.1",
|
||||
"homepage": "http://mocha.github.io/mocha",
|
||||
"description": "simple, flexible, fun test framework",
|
||||
"authors": [
|
||||
"TJ Holowaychuk <tj@vision-media.ca>",
|
||||
"Joshua Appelman <joshua@jbna.nl>",
|
||||
"Oleg Gaidarenko <markelog@gmail.com>",
|
||||
"Christoffer Hallas <christoffer.hallas@gmail.com>",
|
||||
"Christopher Hiller <chiller@badwing.com>",
|
||||
"Travis Jeffery <tj@travisjeffery.com>",
|
||||
"Johnathan Ong <me@jongleberry.com>",
|
||||
"Guillermo Rauch <rauchg@gmail.com>"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/mochajs/mocha.git"
|
||||
},
|
||||
"main": [
|
||||
"mocha.js",
|
||||
"mocha.css"
|
||||
],
|
||||
"ignore": [
|
||||
"bin",
|
||||
"editors",
|
||||
"images",
|
||||
"lib",
|
||||
"support",
|
||||
"test",
|
||||
".gitignore",
|
||||
".npmignore",
|
||||
".travis.yml",
|
||||
"component.json",
|
||||
"index.js",
|
||||
"Makefile",
|
||||
"package.json"
|
||||
],
|
||||
"keywords": [
|
||||
"mocha",
|
||||
"test",
|
||||
"bdd",
|
||||
"tdd",
|
||||
"tap"
|
||||
],
|
||||
"license": "MIT",
|
||||
"_release": "2.0.1",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "2.0.1",
|
||||
"commit": "4727d357ea5633bcaff863438cdb11bf6da9a391"
|
||||
},
|
||||
"_source": "git://github.com/visionmedia/mocha.git",
|
||||
"_target": "~2.0.1",
|
||||
"_originalSource": "mocha",
|
||||
"_direct": true
|
||||
}
|
|
@ -1,18 +0,0 @@
|
|||
# This file is for unifying the coding style for different editors and IDEs
|
||||
# editorconfig.org
|
||||
|
||||
root = true
|
||||
|
||||
[*]
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
||||
[Makefile]
|
||||
indent_style = tab
|
||||
|
||||
[*.md]
|
||||
trim_trailing_whitespace = false
|
|
@ -1,758 +0,0 @@
|
|||
2.0.0 / 2014-10-21
|
||||
==================
|
||||
|
||||
* remove: support for node 0.6.x, 0.4.x
|
||||
* fix: landing reporter with non ansi characters (#211)
|
||||
* fix: html reporter - preserve query params when navigating to suites/tests (#1358)
|
||||
* fix: json stream reporter add error message to failed test
|
||||
* fix: fixes for visionmedia -> mochajs
|
||||
* fix: use stdio, fixes node deprecation warnings (#1391)
|
||||
|
||||
1.21.5 / 2014-10-11
|
||||
==================
|
||||
|
||||
* fix: build for NodeJS v0.6.x
|
||||
* fix: do not attempt to highlight syntax when non-HTML reporter is used
|
||||
* update: escape-string-regexp to 1.0.2.
|
||||
* fix: botched indentation in canonicalize()
|
||||
* fix: .gitignore: ignore .patch and .diff files
|
||||
* fix: changed 'Catched' to 'Caught' in uncaught exception error handler messages
|
||||
* add: `pending` field for json reporter
|
||||
* fix: Runner.prototype.uncaught: don't double-end runnables that already have a state.
|
||||
* fix: --recursive, broken by f0facd2e
|
||||
* update: replaces escapeRegexp with the escape-string-regexp package.
|
||||
* update: commander to 2.3.0.
|
||||
* update: diff to 1.0.8.
|
||||
* fix: ability to disable syntax highlighting (#1329)
|
||||
* fix: added empty object to errorJSON() call to catch when no error is present
|
||||
* fix: never time out after calling enableTimeouts(false)
|
||||
* fix: timeout(0) will work at suite level (#1300)
|
||||
* Fix for --watch+only() issue (#888 )
|
||||
* fix: respect err.showDiff, add Base reporter test (#810)
|
||||
|
||||
1.22.1-3 / 2014-07-27
|
||||
==================
|
||||
|
||||
* fix: disabling timeouts with this.timeout(0) (#1301)
|
||||
|
||||
1.22.1-3 / 2014-07-27
|
||||
==================
|
||||
|
||||
* fix: local uis and reporters (#1288)
|
||||
* fix: building 1.21.0's changes in the browser (#1284)
|
||||
|
||||
1.21.0 / 2014-07-23
|
||||
==================
|
||||
|
||||
* add: --no-timeouts option (#1262, #1268)
|
||||
* add: --*- deprecation node flags (#1217)
|
||||
* add: --watch-extensions argument (#1247)
|
||||
* change: spec reporter is default (#1228)
|
||||
* fix: diff output showing incorrect +/- (#1182)
|
||||
* fix: diffs of circular structures (#1179)
|
||||
* fix: re-render the progress bar when progress has changed only (#1151)
|
||||
* fix support for environments with global and window (#1159)
|
||||
* fix: reverting to previously defined onerror handler (#1178)
|
||||
* fix: stringify non error objects passed to done() (#1270)
|
||||
* fix: using local ui, reporters (#1267)
|
||||
* fix: cleaning es6 arrows (#1176)
|
||||
* fix: don't include attrs in failure tag for xunit (#1244)
|
||||
* fix: fail tests that return a promise if promise is rejected w/o a reason (#1224)
|
||||
* fix: showing failed tests in doc reporter (#1117)
|
||||
* fix: dot reporter dots being off (#1204)
|
||||
* fix: catch empty throws (#1219)
|
||||
* fix: honoring timeout for sync operations (#1242)
|
||||
* update: growl to 1.8.0
|
||||
|
||||
1.20.1 / 2014-06-03
|
||||
==================
|
||||
|
||||
* update: should dev dependency to ~4.0.0 (#1231)
|
||||
|
||||
1.20.0 / 2014-05-28
|
||||
==================
|
||||
|
||||
* add: filenames to suite objects (#1222)
|
||||
|
||||
1.19.0 / 2014-05-17
|
||||
==================
|
||||
|
||||
* add: browser script option to package.json
|
||||
* add: export file in Mocha.Test objects (#1174)
|
||||
* add: add docs for wrapped node flags
|
||||
* fix: mocha.run() to return error status in browser (#1216)
|
||||
* fix: clean() to show failure details (#1205)
|
||||
* fix: regex that generates html for new keyword (#1201)
|
||||
* fix: sibling suites have inherited but separate contexts (#1164)
|
||||
|
||||
|
||||
1.18.2 / 2014-03-18
|
||||
==================
|
||||
|
||||
* fix: html runner was prevented from using #mocha as the default root el (#1162)
|
||||
|
||||
1.18.1 / 2014-03-18
|
||||
==================
|
||||
|
||||
* fix: named before/after hooks in bdd, tdd, qunit interfaces (#1161)
|
||||
|
||||
1.18.0 / 2014-03-13
|
||||
==================
|
||||
|
||||
* add: promise support (#329)
|
||||
* add: named before/after hooks (#966)
|
||||
|
||||
1.17.1 / 2014-01-22
|
||||
==================
|
||||
|
||||
* fix: expected messages in should.js (should.js#168)
|
||||
* fix: expect errno global in node versions < v0.9.11 (#1111)
|
||||
* fix: unreliable checkGlobals optimization (#1110)
|
||||
|
||||
1.17.0 / 2014-01-09
|
||||
==================
|
||||
|
||||
* add: able to require globals (describe, it, etc.) through mocha (#1077)
|
||||
* fix: abort previous run on --watch change (#1100)
|
||||
* fix: reset context for each --watch triggered run (#1099)
|
||||
* fix: error when cli can't resolve path or pattern (#799)
|
||||
* fix: canonicalize objects before stringifying and diffing them (#1079)
|
||||
* fix: make CR call behave like carriage return for non tty (#1087)
|
||||
|
||||
|
||||
1.16.2 / 2013-12-23
|
||||
==================
|
||||
|
||||
* fix: couple issues with ie 8 (#1082, #1081)
|
||||
* fix: issue running the xunit reporter in browsers (#1068)
|
||||
* fix: issue with firefox < 3.5 (#725)
|
||||
|
||||
|
||||
1.16.1 / 2013-12-19
|
||||
==================
|
||||
|
||||
* fix: recompiled for missed changes from the last release
|
||||
|
||||
|
||||
1.16.0 / 2013-12-19
|
||||
==================
|
||||
|
||||
* add: Runnable.globals(arr) for per test global whitelist (#1046)
|
||||
* add: mocha.throwError(err) for assertion libs to call (#985)
|
||||
* remove: --watch's spinner (#806)
|
||||
* fix: duplicate test output for multi-line specs in spec reporter (#1006)
|
||||
* fix: gracefully exit on SIGINT (#1063)
|
||||
* fix expose the specified ui only in the browser (#984)
|
||||
* fix: ensure process exit code is preserved when using --no-exit (#1059)
|
||||
* fix: return true from window.onerror handler (#868)
|
||||
* fix: xunit reporter to use process.stdout.write (#1068)
|
||||
* fix: utils.clean(str) indentation (#761)
|
||||
* fix: xunit reporter returning test duration a NaN (#1039)
|
||||
|
||||
1.15.1 / 2013-12-03
|
||||
==================
|
||||
|
||||
* fix: recompiled for missed changes from the last release
|
||||
|
||||
1.15.0 / 2013-12-02
|
||||
==================
|
||||
|
||||
* add: `--no-exit` to prevent `process.exit()` (#1018)
|
||||
* fix: using inline diffs (#1044)
|
||||
* fix: show pending test details in xunit reporter (#1051)
|
||||
* fix: faster global leak detection (#1024)
|
||||
* fix: yui compression (#1035)
|
||||
* fix: wrapping long lines in test results (#1030, #1031)
|
||||
* fix: handle errors in hooks (#1043)
|
||||
|
||||
1.14.0 / 2013-11-02
|
||||
==================
|
||||
|
||||
* add: unified diff (#862)
|
||||
* add: set MOCHA_COLORS env var to use colors (#965)
|
||||
* add: able to override tests links in html reporters (#776)
|
||||
* remove: teamcity reporter (#954)
|
||||
* update: commander dependency to 2.0.0 (#1010)
|
||||
* fix: mocha --ui will try to require the ui if not built in, as --reporter does (#1022)
|
||||
* fix: send cursor commands only if isatty (#184, #1003)
|
||||
* fix: include assertion message in base reporter (#993, #991)
|
||||
* fix: consistent return of it, it.only, and describe, describe.only (#840)
|
||||
|
||||
1.13.0 / 2013-09-15
|
||||
==================
|
||||
|
||||
* add: sort test files with --sort (#813)
|
||||
* update: diff depedency to 1.0.7
|
||||
* update: glob dependency to 3.2.3 (#927)
|
||||
* fix: diffs show whitespace differences (#976)
|
||||
* fix: improve global leaks (#783)
|
||||
* fix: firefox window.getInterface leak
|
||||
* fix: accessing iframe via window[iframeIndex] leak
|
||||
* fix: faster global leak checking
|
||||
* fix: reporter pending css selector (#970)
|
||||
|
||||
1.12.1 / 2013-08-29
|
||||
==================
|
||||
|
||||
* remove test.js from .gitignore
|
||||
* update included version of ms.js
|
||||
|
||||
1.12.0 / 2013-07-01
|
||||
==================
|
||||
|
||||
* add: prevent diffs for differing types. Closes #900
|
||||
* add `Mocha.process` hack for phantomjs
|
||||
* fix: use compilers with requires
|
||||
* fix regexps in diffs. Closes #890
|
||||
* fix xunit NaN on failure. Closes #894
|
||||
* fix: strip tab indentation in `clean` utility method
|
||||
* fix: textmate bundle installation
|
||||
|
||||
1.11.0 / 2013-06-12
|
||||
==================
|
||||
|
||||
* add --prof support
|
||||
* add --harmony support
|
||||
* add --harmony-generators support
|
||||
* add "Uncaught " prefix to uncaught exceptions
|
||||
* add web workers support
|
||||
* add `suite.skip()`
|
||||
* change to output # of pending / passing even on failures. Closes #872
|
||||
* fix: prevent hooks from being called if we are bailing
|
||||
* fix `this.timeout(0)`
|
||||
|
||||
1.10.0 / 2013-05-21
|
||||
==================
|
||||
|
||||
* add add better globbing support for windows via `glob` module
|
||||
* add support to pass through flags such as --debug-brk=1234. Closes #852
|
||||
* add test.only, test.skip to qunit interface
|
||||
* change to always use word-based diffs for now. Closes #733
|
||||
* change `mocha init` tests.html to index.html
|
||||
* fix `process` global leak in the browser
|
||||
* fix: use resolve() instead of join() for --require
|
||||
* fix: filterLeaks() condition to not consider indices in global object as leaks
|
||||
* fix: restrict mocha.css styling to #mocha id
|
||||
* fix: save timer references to avoid Sinon interfering in the browser build.
|
||||
|
||||
1.9.0 / 2013-04-03
|
||||
==================
|
||||
|
||||
* add improved setImmediate implementation
|
||||
* replace --ignore-leaks with --check-leaks
|
||||
* change default of ignoreLeaks to true. Closes #791
|
||||
* remove scrolling for HTML reporter
|
||||
* fix retina support
|
||||
* fix tmbundle, restrict to js scope
|
||||
|
||||
1.8.2 / 2013-03-11
|
||||
==================
|
||||
|
||||
* add `setImmediate` support for 0.10.x
|
||||
* fix mocha -w spinner on windows
|
||||
|
||||
1.8.1 / 2013-01-09
|
||||
==================
|
||||
|
||||
* fix .bail() arity check causing it to default to true
|
||||
|
||||
1.8.0 / 2013-01-08
|
||||
==================
|
||||
|
||||
* add Mocha() options bail support
|
||||
* add `Mocha#bail()` method
|
||||
* add instanceof check back for inheriting from Error
|
||||
* add component.json
|
||||
* add diff.js to browser build
|
||||
* update growl
|
||||
* fix TAP reporter failures comment :D
|
||||
|
||||
1.7.4 / 2012-12-06
|
||||
==================
|
||||
|
||||
* add total number of passes and failures to TAP
|
||||
* remove .bind() calls. re #680
|
||||
* fix indexOf. Closes #680
|
||||
|
||||
1.7.3 / 2012-11-30
|
||||
==================
|
||||
|
||||
* fix uncaught error support for the browser
|
||||
* revert uncaught "fix" which breaks node
|
||||
|
||||
1.7.2 / 2012-11-28
|
||||
==================
|
||||
|
||||
* fix uncaught errors to expose the original error message
|
||||
|
||||
1.7.0 / 2012-11-07
|
||||
==================
|
||||
|
||||
* add `--async-only` support to prevent false positives for missing `done()`
|
||||
* add sorting by filename in code coverage
|
||||
* add HTML 5 doctype to browser template.
|
||||
* add play button to html reporter to rerun a single test
|
||||
* add `this.timeout(ms)` as Suite#timeout(ms). Closes #599
|
||||
* update growl dependency to 1.6.x
|
||||
* fix encoding of test-case ?grep. Closes #637
|
||||
* fix unicode chars on windows
|
||||
* fix dom globals in Opera/IE. Closes #243
|
||||
* fix markdown reporter a tags
|
||||
* fix `this.timeout("5s")` support
|
||||
|
||||
1.6.0 / 2012-10-02
|
||||
==================
|
||||
|
||||
* add object diffs when `err.showDiff` is present
|
||||
* add hiding of empty suites when pass/failures are toggled
|
||||
* add faster `.length` checks to `checkGlobals()` before performing the filter
|
||||
|
||||
1.5.0 / 2012-09-21
|
||||
==================
|
||||
|
||||
* add `ms()` to `.slow()` and `.timeout()`
|
||||
* add `Mocha#checkLeaks()` to re-enable global leak checks
|
||||
* add `this.slow()` option [aheckmann]
|
||||
* add tab, CR, LF to error diffs for now
|
||||
* add faster `.checkGlobals()` solution [guille]
|
||||
* remove `fn.call()` from reduce util
|
||||
* remove `fn.call()` from filter util
|
||||
* fix forEach. Closes #582
|
||||
* fix relaying of signals [TooTallNate]
|
||||
* fix TAP reporter grep number
|
||||
|
||||
1.4.2 / 2012-09-01
|
||||
==================
|
||||
|
||||
* add support to multiple `Mocha#globals()` calls, and strings
|
||||
* add `mocha.reporter()` constructor support [jfirebaugh]
|
||||
* add `mocha.timeout()`
|
||||
* move query-string parser to utils.js
|
||||
* move highlight code to utils.js
|
||||
* fix third-party reporter support [exogen]
|
||||
* fix client-side API to match node-side [jfirebaugh]
|
||||
* fix mocha in iframe [joliss]
|
||||
|
||||
1.4.1 / 2012-08-28
|
||||
==================
|
||||
|
||||
* add missing `Markdown` export
|
||||
* fix `Mocha#grep()`, escape regexp strings
|
||||
* fix reference error when `devicePixelRatio` is not defined. Closes #549
|
||||
|
||||
1.4.0 / 2012-08-22
|
||||
==================
|
||||
|
||||
* add mkdir -p to `mocha init`. Closes #539
|
||||
* add `.only()`. Closes #524
|
||||
* add `.skip()`. Closes #524
|
||||
* change str.trim() to use utils.trim(). Closes #533
|
||||
* fix HTML progress indicator retina display
|
||||
* fix url-encoding of click-to-grep HTML functionality
|
||||
|
||||
1.3.2 / 2012-08-01
|
||||
==================
|
||||
|
||||
* fix exports double-execution regression. Closes #531
|
||||
|
||||
1.3.1 / 2012-08-01
|
||||
==================
|
||||
|
||||
* add passes/failures toggling to HTML reporter
|
||||
* add pending state to `xit()` and `xdescribe()` [Brian Moore]
|
||||
* add the @charset "UTF-8"; to fix #522 with FireFox. [Jonathan Creamer]
|
||||
* add border-bottom to #stats links
|
||||
* add check for runnable in `Runner#uncaught()`. Closes #494
|
||||
* add 0.4 and 0.6 back to travis.yml
|
||||
* add `-E, --growl-errors` to growl on failures only
|
||||
* add prefixes to debug() names. Closes #497
|
||||
* add `Mocha#invert()` to js api
|
||||
* change dot reporter to use sexy unicode dots
|
||||
* fix error when clicking pending test in HTML reporter
|
||||
* fix `make tm`
|
||||
|
||||
1.3.0 / 2012-07-05
|
||||
==================
|
||||
|
||||
* add window scrolling to `HTML` reporter
|
||||
* add v8 `--trace-*` option support
|
||||
* add support for custom reports via `--reporter MODULE`
|
||||
* add `--invert` switch to invert `--grep` matches
|
||||
* fix export of `Nyan` reporter. Closes #495
|
||||
* fix escaping of `HTML` suite titles. Closes #486
|
||||
* fix `done()` called multiple times with an error test
|
||||
* change `--grep` - regexp escape the input
|
||||
|
||||
1.2.2 / 2012-06-28
|
||||
==================
|
||||
|
||||
* Added 0.8.0 support
|
||||
|
||||
1.2.1 / 2012-06-25
|
||||
==================
|
||||
|
||||
* Added `this.test.error(err)` support to after each hooks. Closes #287
|
||||
* Added: export top-level suite on global mocha object (mocha.suite). Closes #448
|
||||
* Fixed `js` code block format error in markdown reporter
|
||||
* Fixed deprecation warning when using `path.existsSync`
|
||||
* Fixed --globals with wildcard
|
||||
* Fixed chars in nyan when his head moves back
|
||||
* Remove `--growl` from test/mocha.opts. Closes #289
|
||||
|
||||
1.2.0 / 2012-06-17
|
||||
==================
|
||||
|
||||
* Added `nyan` reporter [Atsuya Takagi]
|
||||
* Added `mocha init <path>` to copy client files
|
||||
* Added "specify" synonym for "it" [domenic]
|
||||
* Added global leak wildcard support [nathanbowser]
|
||||
* Fixed runner emitter leak. closes #432
|
||||
* Fixed omission of .js extension. Closes #454
|
||||
|
||||
1.1.0 / 2012-05-30
|
||||
==================
|
||||
|
||||
* Added: check each `mocha(1)` arg for directories to walk
|
||||
* Added `--recursive` [tricknotes]
|
||||
* Added `context` for BDD [hokaccha]
|
||||
* Added styling for new clickable titles
|
||||
* Added clickable suite titles to HTML reporter
|
||||
* Added warning when strings are thrown as errors
|
||||
* Changed: green arrows again in HTML reporter styling
|
||||
* Changed ul/li elements instead of divs for better copy-and-pasting [joliss]
|
||||
* Fixed issue #325 - add better grep support to js api
|
||||
* Fixed: save timer references to avoid Sinon interfering.
|
||||
|
||||
1.0.3 / 2012-04-30
|
||||
==================
|
||||
|
||||
* Fixed string diff newlines
|
||||
* Fixed: removed mocha.css target. Closes #401
|
||||
|
||||
1.0.2 / 2012-04-25
|
||||
==================
|
||||
|
||||
* Added HTML reporter duration. Closes #47
|
||||
* Fixed: one postMessage event listener [exogen]
|
||||
* Fixed: allow --globals to be used multiple times. Closes #100 [brendannee]
|
||||
* Fixed #158: removes jquery include from browser tests
|
||||
* Fixed grep. Closes #372 [brendannee]
|
||||
* Fixed #166 - When grepping don't display the empty suites
|
||||
* Removed test/browser/style.css. Closes #385
|
||||
|
||||
1.0.1 / 2012-04-04
|
||||
==================
|
||||
|
||||
* Fixed `.timeout()` in hooks
|
||||
* Fixed: allow callback for `mocha.run()` in client version
|
||||
* Fixed browser hook error display. Closes #361
|
||||
|
||||
1.0.0 / 2012-03-24
|
||||
==================
|
||||
|
||||
* Added js API. Closes #265
|
||||
* Added: initial run of tests with `--watch`. Closes #345
|
||||
* Added: mark `location` as a global on the CS. Closes #311
|
||||
* Added `markdown` reporter (github flavour)
|
||||
* Added: scrolling menu to coverage.html. Closes #335
|
||||
* Added source line to html report for Safari [Tyson Tate]
|
||||
* Added "min" reporter, useful for `--watch` [Jakub Nešetřil]
|
||||
* Added support for arbitrary compilers via . Closes #338 [Ian Young]
|
||||
* Added Teamcity export to lib/reporters/index [Michael Riley]
|
||||
* Fixed chopping of first char in error reporting. Closes #334 [reported by topfunky]
|
||||
* Fixed terrible FF / Opera stack traces
|
||||
|
||||
0.14.1 / 2012-03-06
|
||||
==================
|
||||
|
||||
* Added lib-cov to _.npmignore_
|
||||
* Added reporter to `mocha.run([reporter])` as argument
|
||||
* Added some margin-top to the HTML reporter
|
||||
* Removed jQuery dependency
|
||||
* Fixed `--watch`: purge require cache. Closes #266
|
||||
|
||||
0.14.0 / 2012-03-01
|
||||
==================
|
||||
|
||||
* Added string diff support for terminal reporters
|
||||
|
||||
0.13.0 / 2012-02-23
|
||||
==================
|
||||
|
||||
* Added preliminary test coverage support. Closes #5
|
||||
* Added `HTMLCov` reporter
|
||||
* Added `JSONCov` reporter [kunklejr]
|
||||
* Added `xdescribe()` and `xit()` to the BDD interface. Closes #263 (docs * Changed: make json reporter output pretty json
|
||||
* Fixed node-inspector support, swapped `--debug` for `debug` to match node.
|
||||
needed)
|
||||
Closes #247
|
||||
|
||||
0.12.1 / 2012-02-14
|
||||
==================
|
||||
|
||||
* Added `npm docs mocha` support [TooTallNate]
|
||||
* Added a `Context` object used for hook and test-case this. Closes #253
|
||||
* Fixed `Suite#clone()` `.ctx` reference. Closes #262
|
||||
|
||||
0.12.0 / 2012-02-02
|
||||
==================
|
||||
|
||||
* Added .coffee `--watch` support. Closes #242
|
||||
* Added support to `--require` files relative to the CWD. Closes #241
|
||||
* Added quick n dirty syntax highlighting. Closes #248
|
||||
* Changed: made HTML progress indicator smaller
|
||||
* Fixed xunit errors attribute [dhendo]
|
||||
|
||||
0.10.2 / 2012-01-21
|
||||
==================
|
||||
|
||||
* Fixed suite count in reporter stats. Closes #222
|
||||
* Fixed `done()` after timeout error reporting [Phil Sung]
|
||||
* Changed the 0-based errors to 1
|
||||
|
||||
0.10.1 / 2012-01-17
|
||||
==================
|
||||
|
||||
* Added support for node 0.7.x
|
||||
* Fixed absolute path support. Closes #215 [kompiro]
|
||||
* Fixed `--no-colors` option [Jussi Virtanen]
|
||||
* Fixed Arial CSS typo in the correct file
|
||||
|
||||
0.10.0 / 2012-01-13
|
||||
==================
|
||||
|
||||
* Added `-b, --bail` to exit on first exception [guillermo]
|
||||
* Added support for `-gc` / `--expose-gc` [TooTallNate]
|
||||
* Added `qunit`-inspired interface
|
||||
* Added MIT LICENSE. Closes #194
|
||||
* Added: `--watch` all .js in the CWD. Closes #139
|
||||
* Fixed `self.test` reference in runner. Closes #189
|
||||
* Fixed double reporting of uncaught exceptions after timeout. Closes #195
|
||||
|
||||
0.8.2 / 2012-01-05
|
||||
==================
|
||||
|
||||
* Added test-case context support. Closes #113
|
||||
* Fixed exit status. Closes #187
|
||||
* Update commander. Closes #190
|
||||
|
||||
0.8.1 / 2011-12-30
|
||||
==================
|
||||
|
||||
* Fixed reporting of uncaught exceptions. Closes #183
|
||||
* Fixed error message defaulting [indutny]
|
||||
* Changed mocha(1) from bash to node for windows [Nathan Rajlich]
|
||||
|
||||
0.8.0 / 2011-12-28
|
||||
==================
|
||||
|
||||
* Added `XUnit` reporter [FeeFighters/visionmedia]
|
||||
* Added `say(1)` notification support [Maciej Małecki]
|
||||
* Changed: fail when done() is invoked with a non-Error. Closes #171
|
||||
* Fixed `err.stack`, defaulting to message. Closes #180
|
||||
* Fixed: `make tm` mkdir -p the dest. Closes #137
|
||||
* Fixed mocha(1) --help bin name
|
||||
* Fixed `-d` for `--debug` support
|
||||
|
||||
0.7.1 / 2011-12-22
|
||||
==================
|
||||
|
||||
* Removed `mocha-debug(1)`, use `mocha --debug`
|
||||
* Fixed CWD relative requires
|
||||
* Fixed growl issue on windows [Raynos]
|
||||
* Fixed: platform specific line endings [TooTallNate]
|
||||
* Fixed: escape strings in HTML reporter. Closes #164
|
||||
|
||||
0.7.0 / 2011-12-18
|
||||
==================
|
||||
|
||||
* Added support for IE{7,8} [guille]
|
||||
* Changed: better browser nextTick implementation [guille]
|
||||
|
||||
0.6.0 / 2011-12-18
|
||||
==================
|
||||
|
||||
* Added setZeroTimeout timeout for browser (nicer stack traces). Closes #153
|
||||
* Added "view source" on hover for HTML reporter to make it obvious
|
||||
* Changed: replace custom growl with growl lib
|
||||
* Fixed duplicate reporting for HTML reporter. Closes #154
|
||||
* Fixed silent hook errors in the HTML reporter. Closes #150
|
||||
|
||||
0.5.0 / 2011-12-14
|
||||
==================
|
||||
|
||||
* Added: push node_modules directory onto module.paths for relative require Closes #93
|
||||
* Added teamcity reporter [blindsey]
|
||||
* Fixed: recover from uncaught exceptions for tests. Closes #94
|
||||
* Fixed: only emit "test end" for uncaught within test, not hook
|
||||
|
||||
0.4.0 / 2011-12-14
|
||||
==================
|
||||
|
||||
* Added support for test-specific timeouts via `this.timeout(0)`. Closes #134
|
||||
* Added guillermo's client-side EventEmitter. Closes #132
|
||||
* Added progress indicator to the HTML reporter
|
||||
* Fixed slow browser tests. Closes #135
|
||||
* Fixed "suite" color for light terminals
|
||||
* Fixed `require()` leak spotted by [guillermo]
|
||||
|
||||
0.3.6 / 2011-12-09
|
||||
==================
|
||||
|
||||
* Removed suite merging (for now)
|
||||
|
||||
0.3.5 / 2011-12-08
|
||||
==================
|
||||
|
||||
* Added support for `window.onerror` [guillermo]
|
||||
* Fixed: clear timeout on uncaught exceptions. Closes #131 [guillermo]
|
||||
* Added `mocha.css` to PHONY list.
|
||||
* Added `mocha.js` to PHONY list.
|
||||
|
||||
0.3.4 / 2011-12-08
|
||||
==================
|
||||
|
||||
* Added: allow `done()` to be called with non-Error
|
||||
* Added: return Runner from `mocha.run()`. Closes #126
|
||||
* Fixed: run afterEach even on failures. Closes #125
|
||||
* Fixed clobbering of current runnable. Closes #121
|
||||
|
||||
0.3.3 / 2011-12-08
|
||||
==================
|
||||
|
||||
* Fixed hook timeouts. Closes #120
|
||||
* Fixed uncaught exceptions in hooks
|
||||
|
||||
0.3.2 / 2011-12-05
|
||||
==================
|
||||
|
||||
* Fixed weird reporting when `err.message` is not present
|
||||
|
||||
0.3.1 / 2011-12-04
|
||||
==================
|
||||
|
||||
* Fixed hook event emitter leak. Closes #117
|
||||
* Fixed: export `Spec` constructor. Closes #116
|
||||
|
||||
0.3.0 / 2011-12-04
|
||||
==================
|
||||
|
||||
* Added `-w, --watch`. Closes #72
|
||||
* Added `--ignore-leaks` to ignore global leak checking
|
||||
* Added browser `?grep=pattern` support
|
||||
* Added `--globals <names>` to specify accepted globals. Closes #99
|
||||
* Fixed `mocha-debug(1)` on some systems. Closes #232
|
||||
* Fixed growl total, use `runner.total`
|
||||
|
||||
0.2.0 / 2011-11-30
|
||||
==================
|
||||
|
||||
* Added `--globals <names>` to specify accepted globals. Closes #99
|
||||
* Fixed funky highlighting of messages. Closes #97
|
||||
* Fixed `mocha-debug(1)`. Closes #232
|
||||
* Fixed growl total, use runner.total
|
||||
|
||||
0.1.0 / 2011-11-29
|
||||
==================
|
||||
|
||||
* Added `suiteSetup` and `suiteTeardown` to TDD interface [David Henderson]
|
||||
* Added growl icons. Closes #84
|
||||
* Fixed coffee-script support
|
||||
|
||||
0.0.8 / 2011-11-25
|
||||
==================
|
||||
|
||||
* Fixed: use `Runner#total` for accurate reporting
|
||||
|
||||
0.0.7 / 2011-11-25
|
||||
==================
|
||||
|
||||
* Added `Hook`
|
||||
* Added `Runnable`
|
||||
* Changed: `Test` is `Runnable`
|
||||
* Fixed global leak reporting in hooks
|
||||
* Fixed: > 2 calls to done() only report the error once
|
||||
* Fixed: clear timer on failure. Closes #80
|
||||
|
||||
0.0.6 / 2011-11-25
|
||||
==================
|
||||
|
||||
* Fixed return on immediate async error. Closes #80
|
||||
|
||||
0.0.5 / 2011-11-24
|
||||
==================
|
||||
|
||||
* Fixed: make mocha.opts whitespace less picky [kkaefer]
|
||||
|
||||
0.0.4 / 2011-11-24
|
||||
==================
|
||||
|
||||
* Added `--interfaces`
|
||||
* Added `--reporters`
|
||||
* Added `-c, --colors`. Closes #69
|
||||
* Fixed hook timeouts
|
||||
|
||||
0.0.3 / 2011-11-23
|
||||
==================
|
||||
|
||||
* Added `-C, --no-colors` to explicitly disable
|
||||
* Added coffee-script support
|
||||
|
||||
0.0.2 / 2011-11-22
|
||||
==================
|
||||
|
||||
* Fixed global leak detection due to Safari bind() change
|
||||
* Fixed: escape html entities in Doc reporter
|
||||
* Fixed: escape html entities in HTML reporter
|
||||
* Fixed pending test support for HTML reporter. Closes #66
|
||||
|
||||
0.0.1 / 2011-11-22
|
||||
==================
|
||||
|
||||
* Added `--timeout` second shorthand support, ex `--timeout 3s`.
|
||||
* Fixed "test end" event for uncaughtExceptions. Closes #61
|
||||
|
||||
0.0.1-alpha6 / 2011-11-19
|
||||
==================
|
||||
|
||||
* Added travis CI support (needs enabling when public)
|
||||
* Added preliminary browser support
|
||||
* Added `make mocha.css` target. Closes #45
|
||||
* Added stack trace to TAP errors. Closes #52
|
||||
* Renamed tearDown to teardown. Closes #49
|
||||
* Fixed: cascading hooksc. Closes #30
|
||||
* Fixed some colors for non-tty
|
||||
* Fixed errors thrown in sync test-cases due to nextTick
|
||||
* Fixed Base.window.width... again give precedence to 0.6.x
|
||||
|
||||
0.0.1-alpha5 / 2011-11-17
|
||||
==================
|
||||
|
||||
* Added `doc` reporter. Closes #33
|
||||
* Added suite merging. Closes #28
|
||||
* Added TextMate bundle and `make tm`. Closes #20
|
||||
|
||||
0.0.1-alpha4 / 2011-11-15
|
||||
==================
|
||||
|
||||
* Fixed getWindowSize() for 0.4.x
|
||||
|
||||
0.0.1-alpha3 / 2011-11-15
|
||||
==================
|
||||
|
||||
* Added `-s, --slow <ms>` to specify "slow" test threshold
|
||||
* Added `mocha-debug(1)`
|
||||
* Added `mocha.opts` support. Closes #31
|
||||
* Added: default [files] to _test/*.js_
|
||||
* Added protection against multiple calls to `done()`. Closes #35
|
||||
* Changed: bright yellow for slow Dot reporter tests
|
||||
|
||||
0.0.1-alpha1 / 2011-11-08
|
||||
==================
|
||||
|
||||
* Missed this one :)
|
||||
|
||||
0.0.1-alpha1 / 2011-11-08
|
||||
==================
|
||||
|
||||
* Initial release
|
|
@ -1,22 +0,0 @@
|
|||
(The MIT License)
|
||||
|
||||
Copyright (c) 2011-2014 TJ Holowaychuk <tj@vision-media.ca>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
'Software'), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@ -1,203 +0,0 @@
|
|||
[![Build Status](https://secure.travis-ci.org/mochajs/mocha.png)](http://travis-ci.org/mochajs/mocha)
|
||||
|
||||
[![Mocha test framework](http://f.cl.ly/items/3l1k0n2A1U3M1I1L210p/Screen%20Shot%202012-02-24%20at%202.21.43%20PM.png)](http://mochajs.org)
|
||||
|
||||
Mocha is a simple, flexible, fun JavaScript test framework for node.js and the browser. For more information view the [documentation](http://mochajs.org).
|
||||
|
||||
## Contributors
|
||||
|
||||
```
|
||||
|
||||
project : mocha
|
||||
repo age : 2 years, 11 months
|
||||
active : 433 days
|
||||
commits : 1424
|
||||
files : 143
|
||||
authors :
|
||||
588 TJ Holowaychuk 41.3%
|
||||
389 Tj Holowaychuk 27.3%
|
||||
98 Travis Jeffery 6.9%
|
||||
31 Guillermo Rauch 2.2%
|
||||
13 Attila Domokos 0.9%
|
||||
10 John Firebaugh 0.7%
|
||||
8 Jo Liss 0.6%
|
||||
7 Joshua Appelman 0.5%
|
||||
7 Nathan Rajlich 0.5%
|
||||
6 Brendan Nee 0.4%
|
||||
6 James Carr 0.4%
|
||||
6 Mike Pennisi 0.4%
|
||||
5 Raynos 0.4%
|
||||
5 Aaron Heckmann 0.4%
|
||||
5 Ryunosuke SATO 0.4%
|
||||
4 Forbes Lindesay 0.3%
|
||||
4 Domenic Denicola 0.3%
|
||||
4 Xavier Antoviaque 0.3%
|
||||
4 hokaccha 0.3%
|
||||
4 Jonathan Ong 0.3%
|
||||
4 Joshua Krall 0.3%
|
||||
3 Ben Lindsey 0.2%
|
||||
3 Benjie Gillam 0.2%
|
||||
3 Fredrik Enestad 0.2%
|
||||
3 Sindre Sorhus 0.2%
|
||||
3 Cory Thomas 0.2%
|
||||
3 Mathieu Desvé 0.2%
|
||||
3 Tyson Tate 0.2%
|
||||
3 Valentin Agachi 0.2%
|
||||
3 Wil Moore III 0.2%
|
||||
3 Jesse Dailey 0.2%
|
||||
3 Merrick Christensen 0.2%
|
||||
3 eiji.ienaga 0.2%
|
||||
3 fool2fish 0.2%
|
||||
3 Nathan Bowser 0.2%
|
||||
3 Paul Miller 0.2%
|
||||
2 FARKAS Máté 0.1%
|
||||
2 Shawn Krisman 0.1%
|
||||
2 Jacob Wejendorp 0.1%
|
||||
2 Jonas Westerlund 0.1%
|
||||
2 Paul Armstrong 0.1%
|
||||
2 Konstantin Käfer 0.1%
|
||||
2 Michael Riley 0.1%
|
||||
2 Michael Schoonmaker 0.1%
|
||||
2 Andreas Lind Petersen 0.1%
|
||||
2 domenic 0.1%
|
||||
2 Quang Van 0.1%
|
||||
2 fcrisci 0.1%
|
||||
2 Nathan Alderson 0.1%
|
||||
2 travis jeffery 0.1%
|
||||
2 Juzer Ali 0.1%
|
||||
2 Pete Hawkins 0.1%
|
||||
2 Justin DuJardin 0.1%
|
||||
2 David Henderson 0.1%
|
||||
2 jsdevel 0.1%
|
||||
2 Timo Tijhof 0.1%
|
||||
2 Brian Beck 0.1%
|
||||
2 Simon Gaeremynck 0.1%
|
||||
2 Ian Storm Taylor 0.1%
|
||||
2 Arian Stolwijk 0.1%
|
||||
2 Alexander Early 0.1%
|
||||
2 Ben Bradley 0.1%
|
||||
2 Glen Mailer 0.1%
|
||||
1 Maciej Małecki 0.1%
|
||||
1 Mal Graty 0.1%
|
||||
1 Marc Kuo 0.1%
|
||||
1 Matija Marohnić 0.1%
|
||||
1 Matt Robenolt 0.1%
|
||||
1 Matt Smith 0.1%
|
||||
1 Matthew Shanley 0.1%
|
||||
1 Mattias Tidlund 0.1%
|
||||
1 Michael Jackson 0.1%
|
||||
1 Nathan Black 0.1%
|
||||
1 Nick Fitzgerald 0.1%
|
||||
1 Noshir Patel 0.1%
|
||||
1 Panu Horsmalahti 0.1%
|
||||
1 Phil Sung 0.1%
|
||||
1 R56 0.1%
|
||||
1 Refael Ackermann 0.1%
|
||||
1 Richard Dingwall 0.1%
|
||||
1 Romain Prieto 0.1%
|
||||
1 Roman Neuhauser 0.1%
|
||||
1 Roman Shtylman 0.1%
|
||||
1 Russ Bradberry 0.1%
|
||||
1 Russell Munson 0.1%
|
||||
1 Rustem Mustafin 0.1%
|
||||
1 Salehen Shovon Rahman 0.1%
|
||||
1 Sasha Koss 0.1%
|
||||
1 Seiya Konno 0.1%
|
||||
1 Shaine Hatch 0.1%
|
||||
1 Simon Goumaz 0.1%
|
||||
1 Standa Opichal 0.1%
|
||||
1 Stephen Mathieson 0.1%
|
||||
1 Steve Mason 0.1%
|
||||
1 Tapiwa Kelvin 0.1%
|
||||
1 Teddy Zeenny 0.1%
|
||||
1 Tim Ehat 0.1%
|
||||
1 Vadim Nikitin 0.1%
|
||||
1 Victor Costan 0.1%
|
||||
1 Will Langstroth 0.1%
|
||||
1 Yanis Wang 0.1%
|
||||
1 Yuest Wang 0.1%
|
||||
1 Zsolt Takács 0.1%
|
||||
1 abrkn 0.1%
|
||||
1 airportyh 0.1%
|
||||
1 badunk 0.1%
|
||||
1 claudyus 0.1%
|
||||
1 fengmk2 0.1%
|
||||
1 gaye 0.1%
|
||||
1 grasGendarme 0.1%
|
||||
1 lakmeer 0.1%
|
||||
1 lodr 0.1%
|
||||
1 qiuzuhui 0.1%
|
||||
1 sebv 0.1%
|
||||
1 tgautier@yahoo.com 0.1%
|
||||
1 traleig1 0.1%
|
||||
1 vlad 0.1%
|
||||
1 yuitest 0.1%
|
||||
1 Adam Crabtree 0.1%
|
||||
1 Andreas Brekken 0.1%
|
||||
1 Andrew Nesbitt 0.1%
|
||||
1 Andrey Popp 0.1%
|
||||
1 Arnaud Brousseau 0.1%
|
||||
1 Atsuya Takagi 0.1%
|
||||
1 Austin Birch 0.1%
|
||||
1 Ben Noordhuis 0.1%
|
||||
1 Bjørge Næss 0.1%
|
||||
1 Brian Lalor 0.1%
|
||||
1 Brian M. Carlson 0.1%
|
||||
1 Brian Moore 0.1%
|
||||
1 Bryan Donovan 0.1%
|
||||
1 Casey Foster 0.1%
|
||||
1 ChrisWren 0.1%
|
||||
1 Christopher Hiller 0.1%
|
||||
1 Corey Butler 0.1%
|
||||
1 Daniel Stockman 0.1%
|
||||
1 Dave McKenna 0.1%
|
||||
1 Denis Bardadym 0.1%
|
||||
1 Devin Weaver 0.1%
|
||||
1 Di Wu 0.1%
|
||||
1 Dmitry Shirokov 0.1%
|
||||
1 Fedor Indutny 0.1%
|
||||
1 Florian Margaine 0.1%
|
||||
1 Frederico Silva 0.1%
|
||||
1 Fredrik Lindin 0.1%
|
||||
1 Gareth Aye 0.1%
|
||||
1 Gareth Murphy 0.1%
|
||||
1 Gavin Mogan 0.1%
|
||||
1 Giovanni Bassi 0.1%
|
||||
1 Glen Huang 0.1%
|
||||
1 Greg Perkins 0.1%
|
||||
1 Harish 0.1%
|
||||
1 Harry Brundage 0.1%
|
||||
1 Herman Junge 0.1%
|
||||
1 Ian Young 0.1%
|
||||
1 Ivan 0.1%
|
||||
1 JP Bochi 0.1%
|
||||
1 Jaakko Salonen 0.1%
|
||||
1 Jakub Nešetřil 0.1%
|
||||
1 James Bowes 0.1%
|
||||
1 James Lal 0.1%
|
||||
1 Jan Kopriva 0.1%
|
||||
1 Jason Barry 0.1%
|
||||
1 Javier Aranda 0.1%
|
||||
1 Jean Ponchon 0.1%
|
||||
1 Jeff Kunkle 0.1%
|
||||
1 Jeremy Martin 0.1%
|
||||
1 Jimmy Cuadra 0.1%
|
||||
1 John Doty 0.1%
|
||||
1 Jonathan Creamer 0.1%
|
||||
1 Jonathan Park 0.1%
|
||||
1 Jussi Virtanen 0.1%
|
||||
1 Katie Gengler 0.1%
|
||||
1 Kazuhito Hokamura 0.1%
|
||||
1 Kirill Korolyov 0.1%
|
||||
1 Koen Punt 0.1%
|
||||
1 Laszlo Bacsi 0.1%
|
||||
1 Liam Newman 0.1%
|
||||
1 Linus Unnebäck 0.1%
|
||||
1 László Bácsi 0.1%
|
||||
```
|
||||
|
||||
## Links
|
||||
|
||||
- [Google Group](http://groups.google.com/group/mochajs)
|
||||
- [Wiki](https://github.com/mochajs/mocha/wiki)
|
||||
- Mocha [Extensions and reporters](https://github.com/mochajs/mocha/wiki)
|
|
@ -1,47 +0,0 @@
|
|||
{
|
||||
"name": "mocha",
|
||||
"version": "2.0.1",
|
||||
"homepage": "http://mocha.github.io/mocha",
|
||||
"description": "simple, flexible, fun test framework",
|
||||
"authors": [
|
||||
"TJ Holowaychuk <tj@vision-media.ca>",
|
||||
"Joshua Appelman <joshua@jbna.nl>",
|
||||
"Oleg Gaidarenko <markelog@gmail.com>",
|
||||
"Christoffer Hallas <christoffer.hallas@gmail.com>",
|
||||
"Christopher Hiller <chiller@badwing.com>",
|
||||
"Travis Jeffery <tj@travisjeffery.com>",
|
||||
"Johnathan Ong <me@jongleberry.com>",
|
||||
"Guillermo Rauch <rauchg@gmail.com>"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/mochajs/mocha.git"
|
||||
},
|
||||
"main": [
|
||||
"mocha.js",
|
||||
"mocha.css"
|
||||
],
|
||||
"ignore": [
|
||||
"bin",
|
||||
"editors",
|
||||
"images",
|
||||
"lib",
|
||||
"support",
|
||||
"test",
|
||||
".gitignore",
|
||||
".npmignore",
|
||||
".travis.yml",
|
||||
"component.json",
|
||||
"index.js",
|
||||
"Makefile",
|
||||
"package.json"
|
||||
],
|
||||
"keywords": [
|
||||
"mocha",
|
||||
"test",
|
||||
"bdd",
|
||||
"tdd",
|
||||
"tap"
|
||||
],
|
||||
"license": "MIT"
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 17.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="612px" height="792px" viewBox="0 0 612 792" enable-background="new 0 0 612 792" xml:space="preserve">
|
||||
<circle fill="#8A6343" cx="306" cy="396" r="306"/>
|
||||
<text transform="matrix(1 0 0 1 72.1431 424.7633)" fill="#FFFFFF" font-family="'HelveticaNeue'" font-size="153">mocha</text>
|
||||
</svg>
|
Before Width: | Height: | Size: 658 B |
Loading…
Reference in a new issue