benderjs-sinon

Sinon.js adapter for Bender.js

Usage no npm install needed!

<script type="module">
  import benderjsSinon from 'https://cdn.skypack.dev/benderjs-sinon';
</script>

README

benderjs-sinon

Sinon.js adapter for Bender.js

Installation

npm install benderjs-sinon

Usage

Add benderjs-sinon to the plugins array in your bender.js configuration file:

var config = {
    applications: {...}

    browsers: [...],

    plugins: ['benderjs-sinon'], // load the plugin

    tests: {...}
};

module.exports = config;

From now on Sinon.js API will be available in the global namespace of a test page. For more details please check Sinon.js' documentation.

License

MIT, for license details see: LICENSE.md.