ember-mocha
Advanced tools
Comparing version 0.9.1 to 0.9.2
294
CHANGELOG.md
# Change Log | ||
## [Unreleased](https://github.com/switchfly/ember-mocha/tree/HEAD) | ||
## [v0.9.2](https://github.com/emberjs/ember-mocha/tree/v0.9.2) (2016-11-23) | ||
[Full Changelog](https://github.com/emberjs/ember-mocha/compare/v0.9.1...v0.9.2) | ||
[Full Changelog](https://github.com/switchfly/ember-mocha/compare/v0.8.11...HEAD) | ||
**Implemented enhancements:** | ||
- Add "Upgrade Guide" to the README [\#106](https://github.com/emberjs/ember-mocha/pull/106) ([Turbo87](https://github.com/Turbo87)) | ||
- CI: Publish releases to "ember-mocha-builds" repo [\#100](https://github.com/emberjs/ember-mocha/pull/100) ([Turbo87](https://github.com/Turbo87)) | ||
**Fixed bugs:** | ||
- Write upgrade guide for old test helpers [\#104](https://github.com/emberjs/ember-mocha/issues/104) | ||
- Release instructions aka. "ember-mocha-builds" repository needs an update [\#95](https://github.com/emberjs/ember-mocha/issues/95) | ||
- Trouble with visit + andThen in acceptance [\#77](https://github.com/emberjs/ember-mocha/issues/77) | ||
- Using ember-mocha without Ember Data [\#49](https://github.com/emberjs/ember-mocha/issues/49) | ||
- Fix tests by using the ESLint nodes correctly [\#101](https://github.com/emberjs/ember-mocha/pull/101) ([Turbo87](https://github.com/Turbo87)) | ||
**Closed issues:** | ||
- Component Integration \(non-block component\) Test Fails in Ember-Engine [\#82](https://github.com/switchfly/ember-mocha/issues/82) | ||
- Accidentally checking in .only [\#80](https://github.com/switchfly/ember-mocha/issues/80) | ||
- Setup Questions [\#74](https://github.com/switchfly/ember-mocha/issues/74) | ||
- You can then choose to include the global \(ember-mocha.js\) [\#73](https://github.com/switchfly/ember-mocha/issues/73) | ||
- Tests fail with v0.8.9 [\#71](https://github.com/switchfly/ember-mocha/issues/71) | ||
- Unlock Mocha dependency [\#68](https://github.com/switchfly/ember-mocha/issues/68) | ||
- Enable TravisCI [\#98](https://github.com/emberjs/ember-mocha/issues/98) | ||
- Add repository information to package.json [\#93](https://github.com/emberjs/ember-mocha/issues/93) | ||
- "set" method undefined when using needs [\#61](https://github.com/emberjs/ember-mocha/issues/61) | ||
- Setting test reporter [\#37](https://github.com/emberjs/ember-mocha/issues/37) | ||
- Set 'timeout' globally? [\#28](https://github.com/emberjs/ember-mocha/issues/28) | ||
- consider deprecating callbacks [\#14](https://github.com/emberjs/ember-mocha/issues/14) | ||
**Merged pull requests:** | ||
- Replace JSHint with ESLint [\#85](https://github.com/switchfly/ember-mocha/pull/85) ([Turbo87](https://github.com/Turbo87)) | ||
- Update NPM dependencies [\#83](https://github.com/switchfly/ember-mocha/pull/83) ([Turbo87](https://github.com/Turbo87)) | ||
- Adjust "mocha" dependency to allow 2.3, 2.4, ... releases [\#76](https://github.com/switchfly/ember-mocha/pull/76) ([Turbo87](https://github.com/Turbo87)) | ||
- Update README [\#97](https://github.com/emberjs/ember-mocha/pull/97) ([Turbo87](https://github.com/Turbo87)) | ||
- Update CHANGELOG [\#96](https://github.com/emberjs/ember-mocha/pull/96) ([Turbo87](https://github.com/Turbo87)) | ||
- Cleanup package.json [\#94](https://github.com/emberjs/ember-mocha/pull/94) ([Turbo87](https://github.com/Turbo87)) | ||
## [v0.8.11](https://github.com/switchfly/ember-mocha/tree/v0.8.11) (2016-02-01) | ||
[Full Changelog](https://github.com/switchfly/ember-mocha/compare/v0.8.10...v0.8.11) | ||
## [v0.9.1](https://github.com/emberjs/ember-mocha/tree/v0.9.1) (2016-09-12) | ||
[Full Changelog](https://github.com/emberjs/ember-mocha/compare/v0.9.0...v0.9.1) | ||
## [v0.8.10](https://github.com/switchfly/ember-mocha/tree/v0.8.10) (2016-02-01) | ||
[Full Changelog](https://github.com/switchfly/ember-mocha/compare/v0.8.9...v0.8.10) | ||
**Merged pull requests:** | ||
- Share Mocha's test context in setup-test-factory. [\#91](https://github.com/emberjs/ember-mocha/pull/91) ([dgeb](https://github.com/dgeb)) | ||
## [v0.9.0](https://github.com/emberjs/ember-mocha/tree/v0.9.0) (2016-09-12) | ||
[Full Changelog](https://github.com/emberjs/ember-mocha/compare/v0.8.11...v0.9.0) | ||
**Closed issues:** | ||
- Component Integration \(non-block component\) Test Fails in Ember-Engine [\#82](https://github.com/emberjs/ember-mocha/issues/82) | ||
- Accidentally checking in .only [\#80](https://github.com/emberjs/ember-mocha/issues/80) | ||
- Setup Questions [\#74](https://github.com/emberjs/ember-mocha/issues/74) | ||
- You can then choose to include the global \(ember-mocha.js\) [\#73](https://github.com/emberjs/ember-mocha/issues/73) | ||
- Tests fail with v0.8.9 [\#71](https://github.com/emberjs/ember-mocha/issues/71) | ||
- Unlock Mocha dependency [\#68](https://github.com/emberjs/ember-mocha/issues/68) | ||
**Merged pull requests:** | ||
- Ensure builds of ember-test-helpers are properly transpiled. [\#72](https://github.com/switchfly/ember-mocha/pull/72) ([rwjblue](https://github.com/rwjblue)) | ||
- Preserve suite context in outer test function [\#90](https://github.com/emberjs/ember-mocha/pull/90) ([dgeb](https://github.com/dgeb)) | ||
- Share Mocha's test context. [\#89](https://github.com/emberjs/ember-mocha/pull/89) ([dgeb](https://github.com/dgeb)) | ||
- Use predefined ESLint test generator [\#88](https://github.com/emberjs/ember-mocha/pull/88) ([Turbo87](https://github.com/Turbo87)) | ||
- Add changelog file [\#86](https://github.com/emberjs/ember-mocha/pull/86) ([Turbo87](https://github.com/Turbo87)) | ||
- Replace JSHint with ESLint [\#85](https://github.com/emberjs/ember-mocha/pull/85) ([Turbo87](https://github.com/Turbo87)) | ||
- New testing API [\#84](https://github.com/emberjs/ember-mocha/pull/84) ([Turbo87](https://github.com/Turbo87)) | ||
- Update NPM dependencies [\#83](https://github.com/emberjs/ember-mocha/pull/83) ([Turbo87](https://github.com/Turbo87)) | ||
- Adjust "mocha" dependency to allow 2.3, 2.4, ... releases [\#76](https://github.com/emberjs/ember-mocha/pull/76) ([Turbo87](https://github.com/Turbo87)) | ||
## [v0.8.9](https://github.com/switchfly/ember-mocha/tree/v0.8.9) (2016-01-31) | ||
[Full Changelog](https://github.com/switchfly/ember-mocha/compare/v0.8.8...v0.8.9) | ||
## [v0.8.11](https://github.com/emberjs/ember-mocha/tree/v0.8.11) (2016-02-01) | ||
[Full Changelog](https://github.com/emberjs/ember-mocha/compare/v0.8.10...v0.8.11) | ||
## [v0.8.10](https://github.com/emberjs/ember-mocha/tree/v0.8.10) (2016-02-01) | ||
[Full Changelog](https://github.com/emberjs/ember-mocha/compare/v0.8.9...v0.8.10) | ||
**Merged pull requests:** | ||
- Ensure builds of ember-test-helpers are properly transpiled. [\#72](https://github.com/emberjs/ember-mocha/pull/72) ([rwjblue](https://github.com/rwjblue)) | ||
## [v0.8.9](https://github.com/emberjs/ember-mocha/tree/v0.8.9) (2016-01-31) | ||
[Full Changelog](https://github.com/emberjs/ember-mocha/compare/v0.8.8...v0.8.9) | ||
**Closed issues:** | ||
- afterEach block in describeComponent [\#67](https://github.com/switchfly/ember-mocha/issues/67) | ||
- afterEach block in describeComponent [\#67](https://github.com/emberjs/ember-mocha/issues/67) | ||
## [v0.8.8](https://github.com/switchfly/ember-mocha/tree/v0.8.8) (2015-12-07) | ||
[Full Changelog](https://github.com/switchfly/ember-mocha/compare/v0.8.7...v0.8.8) | ||
## [v0.8.8](https://github.com/emberjs/ember-mocha/tree/v0.8.8) (2015-12-07) | ||
[Full Changelog](https://github.com/emberjs/ember-mocha/compare/v0.8.7...v0.8.8) | ||
**Closed issues:** | ||
- v0.8.7 release is actually v0.8.6 [\#66](https://github.com/switchfly/ember-mocha/issues/66) | ||
- v0.8.7 release is actually v0.8.6 [\#66](https://github.com/emberjs/ember-mocha/issues/66) | ||
## [v0.8.7](https://github.com/switchfly/ember-mocha/tree/v0.8.7) (2015-11-10) | ||
[Full Changelog](https://github.com/switchfly/ember-mocha/compare/v0.8.6...v0.8.7) | ||
## [v0.8.7](https://github.com/emberjs/ember-mocha/tree/v0.8.7) (2015-11-10) | ||
[Full Changelog](https://github.com/emberjs/ember-mocha/compare/v0.8.6...v0.8.7) | ||
## [v0.8.6](https://github.com/switchfly/ember-mocha/tree/v0.8.6) (2015-10-27) | ||
[Full Changelog](https://github.com/switchfly/ember-mocha/compare/v0.8.5...v0.8.6) | ||
## [v0.8.6](https://github.com/emberjs/ember-mocha/tree/v0.8.6) (2015-10-27) | ||
[Full Changelog](https://github.com/emberjs/ember-mocha/compare/v0.8.5...v0.8.6) | ||
**Merged pull requests:** | ||
- Expose chai configuration object [\#65](https://github.com/switchfly/ember-mocha/pull/65) ([mupkoo](https://github.com/mupkoo)) | ||
- Expose chai configuration object [\#65](https://github.com/emberjs/ember-mocha/pull/65) ([mupkoo](https://github.com/mupkoo)) | ||
## [v0.8.5](https://github.com/switchfly/ember-mocha/tree/v0.8.5) (2015-10-21) | ||
[Full Changelog](https://github.com/switchfly/ember-mocha/compare/v0.8.4...v0.8.5) | ||
## [v0.8.5](https://github.com/emberjs/ember-mocha/tree/v0.8.5) (2015-10-21) | ||
[Full Changelog](https://github.com/emberjs/ember-mocha/compare/v0.8.4...v0.8.5) | ||
**Closed issues:** | ||
- Use new ember-test-helpers release featuring this.register and this.inject.service [\#63](https://github.com/switchfly/ember-mocha/issues/63) | ||
- Use new ember-test-helpers release featuring this.register and this.inject.service [\#63](https://github.com/emberjs/ember-mocha/issues/63) | ||
## [v0.8.4](https://github.com/switchfly/ember-mocha/tree/v0.8.4) (2015-10-02) | ||
[Full Changelog](https://github.com/switchfly/ember-mocha/compare/v0.8.3...v0.8.4) | ||
## [v0.8.4](https://github.com/emberjs/ember-mocha/tree/v0.8.4) (2015-10-02) | ||
[Full Changelog](https://github.com/emberjs/ember-mocha/compare/v0.8.3...v0.8.4) | ||
**Merged pull requests:** | ||
- Update ember-test-helers to 0.5.11 [\#62](https://github.com/switchfly/ember-mocha/pull/62) ([mattmcmanus](https://github.com/mattmcmanus)) | ||
- Add shim for context [\#59](https://github.com/switchfly/ember-mocha/pull/59) ([SaladFork](https://github.com/SaladFork)) | ||
- Update ember-test-helers to 0.5.11 [\#62](https://github.com/emberjs/ember-mocha/pull/62) ([mattmcmanus](https://github.com/mattmcmanus)) | ||
- Add shim for context [\#59](https://github.com/emberjs/ember-mocha/pull/59) ([SaladFork](https://github.com/SaladFork)) | ||
## [v0.8.3](https://github.com/switchfly/ember-mocha/tree/v0.8.3) (2015-09-13) | ||
[Full Changelog](https://github.com/switchfly/ember-mocha/compare/v0.8.2...v0.8.3) | ||
## [v0.8.3](https://github.com/emberjs/ember-mocha/tree/v0.8.3) (2015-09-13) | ||
[Full Changelog](https://github.com/emberjs/ember-mocha/compare/v0.8.2...v0.8.3) | ||
**Closed issues:** | ||
- ember-test-helpers 0.5.9 [\#56](https://github.com/switchfly/ember-mocha/issues/56) | ||
- ember-test-helpers 0.5.9 [\#56](https://github.com/emberjs/ember-mocha/issues/56) | ||
**Merged pull requests:** | ||
- Update minimum version of ember-test-helpers. [\#58](https://github.com/switchfly/ember-mocha/pull/58) ([rwjblue](https://github.com/rwjblue)) | ||
- Make `beforeEach` and `afterEach` use Ember.run [\#57](https://github.com/switchfly/ember-mocha/pull/57) ([cowboyd](https://github.com/cowboyd)) | ||
- Update minimum version of ember-test-helpers. [\#58](https://github.com/emberjs/ember-mocha/pull/58) ([rwjblue](https://github.com/rwjblue)) | ||
- Make `beforeEach` and `afterEach` use Ember.run [\#57](https://github.com/emberjs/ember-mocha/pull/57) ([cowboyd](https://github.com/cowboyd)) | ||
## [v0.8.2](https://github.com/switchfly/ember-mocha/tree/v0.8.2) (2015-08-28) | ||
[Full Changelog](https://github.com/switchfly/ember-mocha/compare/v0.8.1...v0.8.2) | ||
## [v0.8.2](https://github.com/emberjs/ember-mocha/tree/v0.8.2) (2015-08-28) | ||
[Full Changelog](https://github.com/emberjs/ember-mocha/compare/v0.8.1...v0.8.2) | ||
**Merged pull requests:** | ||
- Update ember-test-helpers minimum version. [\#55](https://github.com/switchfly/ember-mocha/pull/55) ([rwjblue](https://github.com/rwjblue)) | ||
- Update ember-test-helpers minimum version. [\#55](https://github.com/emberjs/ember-mocha/pull/55) ([rwjblue](https://github.com/rwjblue)) | ||
## [v0.8.1](https://github.com/switchfly/ember-mocha/tree/v0.8.1) (2015-08-13) | ||
[Full Changelog](https://github.com/switchfly/ember-mocha/compare/v0.8.0...v0.8.1) | ||
## [v0.8.1](https://github.com/emberjs/ember-mocha/tree/v0.8.1) (2015-08-13) | ||
[Full Changelog](https://github.com/emberjs/ember-mocha/compare/v0.8.0...v0.8.1) | ||
**Closed issues:** | ||
- Issues with async code [\#53](https://github.com/switchfly/ember-mocha/issues/53) | ||
- \[Question\] Does a test module provide access to the container? [\#50](https://github.com/switchfly/ember-mocha/issues/50) | ||
- Update to ember-test-helpers 0.5.2. [\#46](https://github.com/switchfly/ember-mocha/issues/46) | ||
- Consider sync with ember-test-helpers [\#42](https://github.com/switchfly/ember-mocha/issues/42) | ||
- Context [\#40](https://github.com/switchfly/ember-mocha/issues/40) | ||
- Test failures report `\[object Object\]` rather than error message [\#24](https://github.com/switchfly/ember-mocha/issues/24) | ||
- Issues with async code [\#53](https://github.com/emberjs/ember-mocha/issues/53) | ||
- \[Question\] Does a test module provide access to the container? [\#50](https://github.com/emberjs/ember-mocha/issues/50) | ||
- Update to ember-test-helpers 0.5.2. [\#46](https://github.com/emberjs/ember-mocha/issues/46) | ||
- Consider sync with ember-test-helpers [\#42](https://github.com/emberjs/ember-mocha/issues/42) | ||
- Context [\#40](https://github.com/emberjs/ember-mocha/issues/40) | ||
- Test failures report `\[object Object\]` rather than error message [\#24](https://github.com/emberjs/ember-mocha/issues/24) | ||
**Merged pull requests:** | ||
- remove resetViews from 'it' [\#48](https://github.com/switchfly/ember-mocha/pull/48) ([jeffreybiles](https://github.com/jeffreybiles)) | ||
- Update ember test helpers for Ember 2.0.0-beta.3. [\#47](https://github.com/switchfly/ember-mocha/pull/47) ([Robdel12](https://github.com/Robdel12)) | ||
- Remove usage of deprecated `Ember.keys` [\#45](https://github.com/switchfly/ember-mocha/pull/45) ([tstirrat](https://github.com/tstirrat)) | ||
- Update ember-test-helpers [\#43](https://github.com/switchfly/ember-mocha/pull/43) ([sly7-7](https://github.com/sly7-7)) | ||
- remove resetViews from 'it' [\#48](https://github.com/emberjs/ember-mocha/pull/48) ([jeffreybiles](https://github.com/jeffreybiles)) | ||
- Update ember test helpers for Ember 2.0.0-beta.3. [\#47](https://github.com/emberjs/ember-mocha/pull/47) ([Robdel12](https://github.com/Robdel12)) | ||
- Remove usage of deprecated `Ember.keys` [\#45](https://github.com/emberjs/ember-mocha/pull/45) ([tstirrat](https://github.com/tstirrat)) | ||
- Update ember-test-helpers [\#43](https://github.com/emberjs/ember-mocha/pull/43) ([sly7-7](https://github.com/sly7-7)) | ||
## [v0.8.0](https://github.com/switchfly/ember-mocha/tree/v0.8.0) (2015-06-19) | ||
[Full Changelog](https://github.com/switchfly/ember-mocha/compare/v0.7.0...v0.8.0) | ||
## [v0.8.0](https://github.com/emberjs/ember-mocha/tree/v0.8.0) (2015-06-19) | ||
[Full Changelog](https://github.com/emberjs/ember-mocha/compare/v0.7.0...v0.8.0) | ||
**Closed issues:** | ||
- Minor version bump, please. [\#36](https://github.com/switchfly/ember-mocha/issues/36) | ||
- acceptance testing window like qunit [\#33](https://github.com/switchfly/ember-mocha/issues/33) | ||
- Add integration test module [\#26](https://github.com/switchfly/ember-mocha/issues/26) | ||
- Minor version bump, please. [\#36](https://github.com/emberjs/ember-mocha/issues/36) | ||
- acceptance testing window like qunit [\#33](https://github.com/emberjs/ember-mocha/issues/33) | ||
- Add integration test module [\#26](https://github.com/emberjs/ember-mocha/issues/26) | ||
**Merged pull requests:** | ||
- Update ember-test-helpers to 0.5.0. [\#39](https://github.com/switchfly/ember-mocha/pull/39) ([eriktrom](https://github.com/eriktrom)) | ||
- Update ember-test-helpers to 0.5.0. [\#39](https://github.com/emberjs/ember-mocha/pull/39) ([eriktrom](https://github.com/eriktrom)) | ||
## [v0.7.0](https://github.com/switchfly/ember-mocha/tree/v0.7.0) (2015-05-14) | ||
[Full Changelog](https://github.com/switchfly/ember-mocha/compare/v0.6.3...v0.7.0) | ||
## [v0.7.0](https://github.com/emberjs/ember-mocha/tree/v0.7.0) (2015-05-14) | ||
[Full Changelog](https://github.com/emberjs/ember-mocha/compare/v0.6.3...v0.7.0) | ||
## [v0.6.3](https://github.com/switchfly/ember-mocha/tree/v0.6.3) (2015-05-13) | ||
[Full Changelog](https://github.com/switchfly/ember-mocha/compare/v0.6.2...v0.6.3) | ||
## [v0.6.3](https://github.com/emberjs/ember-mocha/tree/v0.6.3) (2015-05-13) | ||
[Full Changelog](https://github.com/emberjs/ember-mocha/compare/v0.6.2...v0.6.3) | ||
**Merged pull requests:** | ||
- Bump ember-test-helpers, mocha, and chai [\#35](https://github.com/switchfly/ember-mocha/pull/35) ([dgeb](https://github.com/dgeb)) | ||
- Bump ember-test-helpers, mocha, and chai [\#35](https://github.com/emberjs/ember-mocha/pull/35) ([dgeb](https://github.com/dgeb)) | ||
## [v0.6.2](https://github.com/switchfly/ember-mocha/tree/v0.6.2) (2015-04-04) | ||
[Full Changelog](https://github.com/switchfly/ember-mocha/compare/v0.6.1...v0.6.2) | ||
## [v0.6.2](https://github.com/emberjs/ember-mocha/tree/v0.6.2) (2015-04-04) | ||
[Full Changelog](https://github.com/emberjs/ember-mocha/compare/v0.6.1...v0.6.2) | ||
## [v0.6.1](https://github.com/switchfly/ember-mocha/tree/v0.6.1) (2015-04-04) | ||
[Full Changelog](https://github.com/switchfly/ember-mocha/compare/v0.6.0...v0.6.1) | ||
## [v0.6.1](https://github.com/emberjs/ember-mocha/tree/v0.6.1) (2015-04-04) | ||
[Full Changelog](https://github.com/emberjs/ember-mocha/compare/v0.6.0...v0.6.1) | ||
**Closed issues:** | ||
- Publish 0.6.0 on NPM [\#30](https://github.com/switchfly/ember-mocha/issues/30) | ||
- Publish 0.6.0 on NPM [\#30](https://github.com/emberjs/ember-mocha/issues/30) | ||
**Merged pull requests:** | ||
- Update to use newer ember-mocha-adapter [\#32](https://github.com/switchfly/ember-mocha/pull/32) ([ef4](https://github.com/ef4)) | ||
- Update to use newer ember-mocha-adapter [\#32](https://github.com/emberjs/ember-mocha/pull/32) ([ef4](https://github.com/ef4)) | ||
## [v0.6.0](https://github.com/switchfly/ember-mocha/tree/v0.6.0) (2015-03-25) | ||
[Full Changelog](https://github.com/switchfly/ember-mocha/compare/v0.5.2...v0.6.0) | ||
## [v0.6.0](https://github.com/emberjs/ember-mocha/tree/v0.6.0) (2015-03-25) | ||
[Full Changelog](https://github.com/emberjs/ember-mocha/compare/v0.5.2...v0.6.0) | ||
**Merged pull requests:** | ||
- Update ember-test-helpers [\#29](https://github.com/switchfly/ember-mocha/pull/29) ([dfreeman](https://github.com/dfreeman)) | ||
- Expose Chai helpers for custom assertions [\#27](https://github.com/switchfly/ember-mocha/pull/27) ([dfreeman](https://github.com/dfreeman)) | ||
- Update ember-test-helpers [\#29](https://github.com/emberjs/ember-mocha/pull/29) ([dfreeman](https://github.com/dfreeman)) | ||
- Expose Chai helpers for custom assertions [\#27](https://github.com/emberjs/ember-mocha/pull/27) ([dfreeman](https://github.com/dfreeman)) | ||
## [v0.5.2](https://github.com/switchfly/ember-mocha/tree/v0.5.2) (2015-03-11) | ||
[Full Changelog](https://github.com/switchfly/ember-mocha/compare/v0.5.1...v0.5.2) | ||
## [v0.5.2](https://github.com/emberjs/ember-mocha/tree/v0.5.2) (2015-03-11) | ||
[Full Changelog](https://github.com/emberjs/ember-mocha/compare/v0.5.1...v0.5.2) | ||
**Closed issues:** | ||
- Ember testing helpers not found [\#25](https://github.com/switchfly/ember-mocha/issues/25) | ||
- Ember testing helpers not found [\#25](https://github.com/emberjs/ember-mocha/issues/25) | ||
## [v0.5.1](https://github.com/switchfly/ember-mocha/tree/v0.5.1) (2015-02-22) | ||
[Full Changelog](https://github.com/switchfly/ember-mocha/compare/v0.5.0...v0.5.1) | ||
## [v0.5.1](https://github.com/emberjs/ember-mocha/tree/v0.5.1) (2015-02-22) | ||
[Full Changelog](https://github.com/emberjs/ember-mocha/compare/v0.5.0...v0.5.1) | ||
## [v0.5.0](https://github.com/switchfly/ember-mocha/tree/v0.5.0) (2015-02-22) | ||
[Full Changelog](https://github.com/switchfly/ember-mocha/compare/v0.4.4...v0.5.0) | ||
## [v0.5.0](https://github.com/emberjs/ember-mocha/tree/v0.5.0) (2015-02-22) | ||
[Full Changelog](https://github.com/emberjs/ember-mocha/compare/v0.4.4...v0.5.0) | ||
## [v0.4.4](https://github.com/switchfly/ember-mocha/tree/v0.4.4) (2015-02-22) | ||
[Full Changelog](https://github.com/switchfly/ember-mocha/compare/v0.4.3...v0.4.4) | ||
## [v0.4.4](https://github.com/emberjs/ember-mocha/tree/v0.4.4) (2015-02-22) | ||
[Full Changelog](https://github.com/emberjs/ember-mocha/compare/v0.4.3...v0.4.4) | ||
**Closed issues:** | ||
- Provide a `mocha` module shim. [\#22](https://github.com/switchfly/ember-mocha/issues/22) | ||
- Provide a `mocha` module shim. [\#22](https://github.com/emberjs/ember-mocha/issues/22) | ||
**Merged pull requests:** | ||
- Add chai and mocha ES6 shims. [\#23](https://github.com/switchfly/ember-mocha/pull/23) ([rwjblue](https://github.com/rwjblue)) | ||
- Add chai and mocha ES6 shims. [\#23](https://github.com/emberjs/ember-mocha/pull/23) ([rwjblue](https://github.com/rwjblue)) | ||
## [v0.4.3](https://github.com/switchfly/ember-mocha/tree/v0.4.3) (2015-02-19) | ||
[Full Changelog](https://github.com/switchfly/ember-mocha/compare/v0.4.2...v0.4.3) | ||
## [v0.4.3](https://github.com/emberjs/ember-mocha/tree/v0.4.3) (2015-02-19) | ||
[Full Changelog](https://github.com/emberjs/ember-mocha/compare/v0.4.2...v0.4.3) | ||
**Closed issues:** | ||
- Overwriting application to use DS.FixtureAdapter in start-app.js [\#21](https://github.com/switchfly/ember-mocha/issues/21) | ||
- Overwriting application to use DS.FixtureAdapter in start-app.js [\#21](https://github.com/emberjs/ember-mocha/issues/21) | ||
## [v0.4.2](https://github.com/switchfly/ember-mocha/tree/v0.4.2) (2015-02-10) | ||
[Full Changelog](https://github.com/switchfly/ember-mocha/compare/v0.4.1...v0.4.2) | ||
## [v0.4.2](https://github.com/emberjs/ember-mocha/tree/v0.4.2) (2015-02-10) | ||
[Full Changelog](https://github.com/emberjs/ember-mocha/compare/v0.4.1...v0.4.2) | ||
## [v0.4.1](https://github.com/switchfly/ember-mocha/tree/v0.4.1) (2015-02-08) | ||
[Full Changelog](https://github.com/switchfly/ember-mocha/compare/v0.4.0...v0.4.1) | ||
## [v0.4.1](https://github.com/emberjs/ember-mocha/tree/v0.4.1) (2015-02-08) | ||
[Full Changelog](https://github.com/emberjs/ember-mocha/compare/v0.4.0...v0.4.1) | ||
**Merged pull requests:** | ||
- Switch from broccoli-cli to ember-cli. [\#20](https://github.com/switchfly/ember-mocha/pull/20) ([dgeb](https://github.com/dgeb)) | ||
- Upgrade ember to 1.10.0 and remove handlebars. [\#19](https://github.com/switchfly/ember-mocha/pull/19) ([dgeb](https://github.com/dgeb)) | ||
- Use git-repo-version instead of git-repo-info directly. [\#18](https://github.com/switchfly/ember-mocha/pull/18) ([dgeb](https://github.com/dgeb)) | ||
- Fixed broken test [\#17](https://github.com/switchfly/ember-mocha/pull/17) ([johanneswuerbach](https://github.com/johanneswuerbach)) | ||
- ensure that context is preserved in setup/teardown [\#16](https://github.com/switchfly/ember-mocha/pull/16) ([cowboyd](https://github.com/cowboyd)) | ||
- allow .skip and .only on top level modules. [\#15](https://github.com/switchfly/ember-mocha/pull/15) ([cowboyd](https://github.com/cowboyd)) | ||
- Switch from broccoli-cli to ember-cli. [\#20](https://github.com/emberjs/ember-mocha/pull/20) ([dgeb](https://github.com/dgeb)) | ||
- Upgrade ember to 1.10.0 and remove handlebars. [\#19](https://github.com/emberjs/ember-mocha/pull/19) ([dgeb](https://github.com/dgeb)) | ||
- Use git-repo-version instead of git-repo-info directly. [\#18](https://github.com/emberjs/ember-mocha/pull/18) ([dgeb](https://github.com/dgeb)) | ||
- Fixed broken test [\#17](https://github.com/emberjs/ember-mocha/pull/17) ([johanneswuerbach](https://github.com/johanneswuerbach)) | ||
- ensure that context is preserved in setup/teardown [\#16](https://github.com/emberjs/ember-mocha/pull/16) ([cowboyd](https://github.com/cowboyd)) | ||
- allow .skip and .only on top level modules. [\#15](https://github.com/emberjs/ember-mocha/pull/15) ([cowboyd](https://github.com/cowboyd)) | ||
## [v0.4.0](https://github.com/switchfly/ember-mocha/tree/v0.4.0) (2015-02-01) | ||
[Full Changelog](https://github.com/switchfly/ember-mocha/compare/v0.3.0...v0.4.0) | ||
## [v0.4.0](https://github.com/emberjs/ember-mocha/tree/v0.4.0) (2015-02-01) | ||
[Full Changelog](https://github.com/emberjs/ember-mocha/compare/v0.3.0...v0.4.0) | ||
## [v0.3.0](https://github.com/switchfly/ember-mocha/tree/v0.3.0) (2015-01-25) | ||
[Full Changelog](https://github.com/switchfly/ember-mocha/compare/v0.2.2...v0.3.0) | ||
## [v0.3.0](https://github.com/emberjs/ember-mocha/tree/v0.3.0) (2015-01-25) | ||
[Full Changelog](https://github.com/emberjs/ember-mocha/compare/v0.2.2...v0.3.0) | ||
## [v0.2.2](https://github.com/switchfly/ember-mocha/tree/v0.2.2) (2015-01-25) | ||
[Full Changelog](https://github.com/switchfly/ember-mocha/compare/v0.2.1...v0.2.2) | ||
## [v0.2.2](https://github.com/emberjs/ember-mocha/tree/v0.2.2) (2015-01-25) | ||
[Full Changelog](https://github.com/emberjs/ember-mocha/compare/v0.2.1...v0.2.2) | ||
**Closed issues:** | ||
- testing non-container objects [\#10](https://github.com/switchfly/ember-mocha/issues/10) | ||
- testing non-container objects [\#10](https://github.com/emberjs/ember-mocha/issues/10) | ||
**Merged pull requests:** | ||
- Add broccoli-cli for running tests [\#12](https://github.com/switchfly/ember-mocha/pull/12) ([backspace](https://github.com/backspace)) | ||
- Add broccoli-cli for running tests [\#12](https://github.com/emberjs/ember-mocha/pull/12) ([backspace](https://github.com/backspace)) | ||
## [v0.2.1](https://github.com/switchfly/ember-mocha/tree/v0.2.1) (2014-12-12) | ||
[Full Changelog](https://github.com/switchfly/ember-mocha/compare/v0.1.4...v0.2.1) | ||
## [v0.2.1](https://github.com/emberjs/ember-mocha/tree/v0.2.1) (2014-12-12) | ||
[Full Changelog](https://github.com/emberjs/ember-mocha/compare/v0.1.4...v0.2.1) | ||
**Closed issues:** | ||
- Model test `needs` block is too needy? [\#8](https://github.com/switchfly/ember-mocha/issues/8) | ||
- Model test `needs` block is too needy? [\#8](https://github.com/emberjs/ember-mocha/issues/8) | ||
**Merged pull requests:** | ||
- toString method of wrapper of it should forward to callback.toString ins... [\#9](https://github.com/switchfly/ember-mocha/pull/9) ([lyonlai](https://github.com/lyonlai)) | ||
- toString method of wrapper of it should forward to callback.toString ins... [\#9](https://github.com/emberjs/ember-mocha/pull/9) ([lyonlai](https://github.com/lyonlai)) | ||
## [v0.1.4](https://github.com/switchfly/ember-mocha/tree/v0.1.4) (2014-11-26) | ||
[Full Changelog](https://github.com/switchfly/ember-mocha/compare/v0.1.3...v0.1.4) | ||
## [v0.1.4](https://github.com/emberjs/ember-mocha/tree/v0.1.4) (2014-11-26) | ||
[Full Changelog](https://github.com/emberjs/ember-mocha/compare/v0.1.3...v0.1.4) | ||
## [v0.1.3](https://github.com/switchfly/ember-mocha/tree/v0.1.3) (2014-11-26) | ||
[Full Changelog](https://github.com/switchfly/ember-mocha/compare/v0.1.2...v0.1.3) | ||
## [v0.1.3](https://github.com/emberjs/ember-mocha/tree/v0.1.3) (2014-11-26) | ||
[Full Changelog](https://github.com/emberjs/ember-mocha/compare/v0.1.2...v0.1.3) | ||
**Merged pull requests:** | ||
- Add mocha to generated bower.json. [\#7](https://github.com/switchfly/ember-mocha/pull/7) ([rwjblue](https://github.com/rwjblue)) | ||
- Add mocha to generated bower.json. [\#7](https://github.com/emberjs/ember-mocha/pull/7) ([rwjblue](https://github.com/rwjblue)) | ||
## [v0.1.2](https://github.com/switchfly/ember-mocha/tree/v0.1.2) (2014-11-26) | ||
[Full Changelog](https://github.com/switchfly/ember-mocha/compare/v0.1.1...v0.1.2) | ||
## [v0.1.2](https://github.com/emberjs/ember-mocha/tree/v0.1.2) (2014-11-26) | ||
[Full Changelog](https://github.com/emberjs/ember-mocha/compare/v0.1.1...v0.1.2) | ||
**Merged pull requests:** | ||
- preserve mocha test context in both setup and assertion blocks [\#6](https://github.com/switchfly/ember-mocha/pull/6) ([cowboyd](https://github.com/cowboyd)) | ||
- Globalized fixes [\#5](https://github.com/switchfly/ember-mocha/pull/5) ([cowboyd](https://github.com/cowboyd)) | ||
- allow `it`, `xit`, `it.skip` and `it.only` forms. [\#4](https://github.com/switchfly/ember-mocha/pull/4) ([cowboyd](https://github.com/cowboyd)) | ||
- call to it caused infinite loop in global build [\#2](https://github.com/switchfly/ember-mocha/pull/2) ([cowboyd](https://github.com/cowboyd)) | ||
- preserve mocha test context in both setup and assertion blocks [\#6](https://github.com/emberjs/ember-mocha/pull/6) ([cowboyd](https://github.com/cowboyd)) | ||
- Globalized fixes [\#5](https://github.com/emberjs/ember-mocha/pull/5) ([cowboyd](https://github.com/cowboyd)) | ||
- allow `it`, `xit`, `it.skip` and `it.only` forms. [\#4](https://github.com/emberjs/ember-mocha/pull/4) ([cowboyd](https://github.com/cowboyd)) | ||
- call to it caused infinite loop in global build [\#2](https://github.com/emberjs/ember-mocha/pull/2) ([cowboyd](https://github.com/cowboyd)) | ||
## [v0.1.1](https://github.com/switchfly/ember-mocha/tree/v0.1.1) (2014-11-20) | ||
[Full Changelog](https://github.com/switchfly/ember-mocha/compare/v0.1.0...v0.1.1) | ||
## [v0.1.1](https://github.com/emberjs/ember-mocha/tree/v0.1.1) (2014-11-20) | ||
[Full Changelog](https://github.com/emberjs/ember-mocha/compare/v0.1.0...v0.1.1) | ||
**Closed issues:** | ||
- Getting started guide [\#1](https://github.com/switchfly/ember-mocha/issues/1) | ||
- Getting started guide [\#1](https://github.com/emberjs/ember-mocha/issues/1) | ||
## [v0.1.0](https://github.com/switchfly/ember-mocha/tree/v0.1.0) (2014-11-11) | ||
## [v0.1.0](https://github.com/emberjs/ember-mocha/tree/v0.1.0) (2014-11-11) | ||
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)* |
{ | ||
"name": "ember-mocha", | ||
"version": "0.9.1", | ||
"version": "0.9.2", | ||
"description": "Mocha helpers for testing Ember.js applications", | ||
"homepage": "https://github.com/emberjs/ember-mocha", | ||
"bugs": { | ||
"url": "https://github.com/emberjs/ember-mocha/issues" | ||
}, | ||
"license": "Apache-2.0", | ||
"contributors": [ | ||
"Dan Gebhardt", | ||
"Robert Jackson" | ||
], | ||
"main": "lib/ember-mocha.js", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/emberjs/ember-mocha.git" | ||
}, | ||
"scripts": { | ||
"build": "ember build", | ||
"test": "ember test", | ||
"start": "ember serve" | ||
"start": "ember serve", | ||
"test": "ember test" | ||
}, | ||
"authors": [ | ||
"Dan Gebhardt", | ||
"Robert Jackson" | ||
"files": [ | ||
"build-support", | ||
"lib" | ||
], | ||
"license": "Apache Version 2.0", | ||
"dependencies": { | ||
"ember-test-helpers": "^0.5.33" | ||
}, | ||
"devDependencies": { | ||
@@ -28,6 +43,3 @@ "broccoli-babel-transpiler": "^5.5.0", | ||
"resolve": "^1.1.7" | ||
}, | ||
"dependencies": { | ||
"ember-test-helpers": "^0.5.33" | ||
} | ||
} |
125
README.md
@@ -1,9 +0,25 @@ | ||
# Ember Mocha [![Build Status](https://secure.travis-ci.org/switchfly/ember-mocha.png?branch=master)](http://travis-ci.org/switchfly/ember-mocha) | ||
Ember Mocha simplifies unit testing of Ember applications with Mocha by | ||
providing Mocha-specific wrappers around the helpers contained in | ||
ember-mocha | ||
============================================================================== | ||
[![Latest NPM release][npm-badge]][npm-badge-url] | ||
[![TravisCI Build Status][travis-badge]][travis-badge-url] | ||
[npm-badge]: https://img.shields.io/npm/v/ember-mocha.svg | ||
[npm-badge-url]: https://www.npmjs.com/package/ember-mocha | ||
[travis-badge]: https://img.shields.io/travis/emberjs/ember-mocha/master.svg | ||
[travis-badge-url]: https://travis-ci.org/emberjs/ember-mocha | ||
ember-mocha simplifies unit testing of Ember applications with | ||
[Mocha](https://mochajs.org/) by providing Mocha-specific wrappers around the | ||
helpers contained in | ||
[ember-test-helpers](https://github.com/switchfly/ember-test-helpers). | ||
## Installation | ||
*Upgrading from an earlier version? Have a look at our | ||
[Upgrade Guide](#upgrading) below.* | ||
Installation | ||
------------------------------------------------------------------------------ | ||
### Installation with Ember CLI | ||
@@ -27,4 +43,6 @@ | ||
## Usage | ||
Usage | ||
------------------------------------------------------------------------------ | ||
### Setting the Resolver | ||
@@ -44,3 +62,3 @@ | ||
### Test Modules | ||
### Setup Tests | ||
@@ -75,3 +93,3 @@ The `setupTest` function can be used to setup a unit test for any kind | ||
#### Component Test Modules | ||
#### Setup Component Tests | ||
@@ -103,3 +121,3 @@ The `setupComponentTest` function is specifically designed to test components | ||
#### Model Test Modules | ||
#### Setup Model Tests | ||
@@ -128,28 +146,75 @@ The `setupModelTest` function can be used to test Ember Data models and | ||
### Asynchronous Testing | ||
Mocha supports asynchronous testing with both promises and callbacks. | ||
Upgrading | ||
------------------------------------------------------------------------------ | ||
```javascript | ||
describe('it', function() { | ||
it('works with asynchronous tests using callbacks', function(done) { | ||
setTimeout(function() { | ||
expect(true).to.equal(true); | ||
done(); | ||
}, 10); | ||
}); | ||
Previous releases promoted the use of `describeModule()`, | ||
`describeComponent()` and `describeModel()` instead of the `describe()` | ||
function of Mocha itself. These functions have been deprecated and replaced | ||
by the `setupTest()` functions mentioned [above](#setup-tests). The following | ||
example will explain how to update your code. | ||
it('works with asynchronous tests using promises', function() { | ||
return new Ember.RSVP.Promise(function(resolve) { | ||
setTimeout(function() { | ||
expect(true).to.equal(true); | ||
resolve(); | ||
}, 10); | ||
Before: | ||
```js | ||
import {expect} from 'chai'; | ||
import {it} from 'mocha'; | ||
import {describeModule} from 'ember-mocha'; | ||
describeModule( | ||
'route:subscribers', | ||
'Unit: Route: subscribers', | ||
{ | ||
needs: ['service:notifications'] | ||
}, | ||
function() { | ||
it('exists', function() { | ||
let route = this.subject(); | ||
expect(route).to.be.ok; | ||
}); | ||
} | ||
); | ||
``` | ||
After: | ||
```js | ||
import {expect} from 'chai'; | ||
import {it, describe} from 'mocha'; | ||
import {setupTest} from 'ember-mocha'; | ||
describe('Unit: Route: subscribers', function() { | ||
setupTest('route:subscribers', { | ||
needs: ['service:notifications'] | ||
}); | ||
it('exists', function() { | ||
let route = this.subject(); | ||
expect(route).to.be.ok; | ||
}); | ||
}); | ||
``` | ||
## Contributing | ||
- import `it` from `mocha` instead of `ember-mocha` | ||
- replace the `describeModule` import with a `setupTest` import | ||
- add a `setupTest()` call to the test `function` with the second and third | ||
argument of the `describeModule()` call (module name and options) | ||
- replace the `describeModule()` call with a `describe()` call with the first | ||
and fourth argument of the `describeModule()` call (description and test | ||
function) | ||
Instead of refactoring all your files by hand we recommend to use the | ||
[ember-mocha-codemods](https://github.com/Turbo87/ember-mocha-codemods) | ||
to automatically convert your tests: | ||
``` | ||
npm install -g jscodeshift | ||
jscodeshift -t https://raw.githubusercontent.com/Turbo87/ember-mocha-codemods/master/import-it-from-mocha.js tests | ||
jscodeshift -t https://raw.githubusercontent.com/Turbo87/ember-mocha-codemods/master/new-testing-api.js tests | ||
``` | ||
Contributing | ||
------------------------------------------------------------------------------ | ||
Contributions are welcome. Please follow the instructions below to install and | ||
@@ -161,3 +226,3 @@ test this library. | ||
```sh | ||
$ npm install | ||
npm install | ||
``` | ||
@@ -170,3 +235,3 @@ | ||
```sh | ||
$ npm start | ||
npm start | ||
``` | ||
@@ -179,7 +244,9 @@ | ||
```sh | ||
$ npm test | ||
npm test | ||
``` | ||
## Copyright and License | ||
Copyright and License | ||
------------------------------------------------------------------------------ | ||
Copyright 2014 Switchfly | ||
@@ -186,0 +253,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Misc. License Issues
License(Experimental) A package's licensing information has fine-grained problems.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
0
0
1
254
0
54624
19
222
2