jasmine_rsvp
Turn a Jasmine suite into one suitable for testing code that produces RSVP promises. The suite tests can be written in a synchronous style which is more readable and you get to control the promise queue.
Requires:
- Jasmine 2.0+
- RSVP
Example:
;
Installation
The package is built as an AMD module jasmine_rsvp
in 4 flavors:
dist/jasmine_rsvp.min.js
production without RSVP; expects you have RSVP locallydist/jasmine_rsvp.js
development without RSVPdist/jasmine_rsvp-full.min.js
production with RSVPdist/jasmine_rsvp-full.js
development with RSVP
You can tell if the package was successfully installed by testing the jasmine.RSVP
global:
if jasmineRSVP && jasmineRSVPenabled // success
Error logging
The package will log all RSVP errors to the console by default. If you want to opt-out of that behavior, you can configure it:
var jasmineRSVP = ;jasmineRSVPlogRSVPErrors = false; // or using the jasmine global:jasmineRSVPlogRSVPErrors = false;
License
MIT