jasmine-sencha

1.0.0 • Public • Published

Sencha Touch and Ext JS adaptor for Jasmine

jasmine-sencha is a tiny adaptor that tweaks Jasmine's "pretty print" format() method to make it aware of the Sencha Touch and Ext JS class system.

Without this adaptor, Jasmine will treat Sencha Touch and Ext JS class instances as deeply nested Objects and attempt to recursively traverse and format all of their instance properties. This produces unnecessarily verbose assertion messages that will cause tests to run very slowly.

Installation and Usage

<script> tag:

First, include ext.js (or ext-all.js, etc.) and jasmine.js in your HTML test runner:

<script src="ext.js"></script>
<script src="jasmine.js"></script>

Then reference jasmine-sencha.js:

<script src="jasmine-sencha.js"></script>

or, if you prefer the minified version:

<script src="jasmine-sencha.min.js"></script>

Karma Test Runner

Reference jasmine-sencha.js or jasmine-sencha.min.js in the files section of your karma.conf.js file.

NOTE: Be sure to reference jasmine-sencha.js after including both ext.js (or ext-all.js, etc.) and jasmine.js.

Contributors

License

Copyright (c) 2013 CodeCatalyst, LLC

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.

Package Sidebar

Install

npm i jasmine-sencha

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • johnyanarella