SinonJS adapter to use it with hydrajs-testing-helper. This adapter allows you mocking, automatically, all your dependencies making easier the testing of your code.
Install with Bower
bower install sinonjs-hydrajs-testing-helper
Install with Component
component install sinonjs-hydrajs-testing-helper
Install with NPM
npm install sinonjs-hydrajs-testing-helper
Insert in your html code:
<script type="text/javascript" src="hydra.js"></script <script type="text/javascript" src="hydrajs-testing-helper.js"></script> <script type="text/javascript" src="sinonjs-hydrajs-testing-helper-adapter"></script>Insert in your code:
define(['sinonjs-hydrajs-testing-helper-adapter'], function () { // code here. });
sinonjs-hydrajs-testing-helper-adapter sets SinonJS as your mock library and manages the mock of all your dependencies automatically.
hydrajs-testing-helper is licensed under MIT license. (see LICENSE file)