How to use the table-js/test/util/DOMEvents.performMouseEvent function in table-js

To help you get started, we’ve selected a few table-js examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github bpmn-io / dmn-js / test / spec / table / features / simple-mode / SimpleModeSpec.js View on Github external
var activatedSpy = sinon.spy(function() {}),
            deactivatedSpy = sinon.spy(function() {});

        var button = simpleMode._node;

        eventBus.on('simpleMode.activated', activatedSpy);
        eventBus.on('simpleMode.deactivated', deactivatedSpy);

        // when
        mouseEvent('click', button);

        // then
        expect(deactivatedSpy).to.have.been.called;

        // when
        mouseEvent('click', button);

        // then
        expect(activatedSpy).to.have.been.called;
      }));

table-js

> This library exposes [ES modules](http://exploringjs.com/es6/ch_modules.html#sec_basics-of-es6-modules). Use an ES module aware bundler such as [Webpack](https://webpack.js.org) or [Rollup](https://rollupjs.org) to bundle it for the browser.

MIT
Latest version published 9 months ago

Package Health Score

69 / 100
Full package analysis