effroi-as-promised

1.0.1 • Public • Published

Effroi-as-promised is a lightweight wrapper around the effroi device event simulation library that results in promises for all device operations. Additionally, it provides support for jquery so that effroi operations can be invoked on elements using complex selectors. This is expected to be used with a javascript loader like webpack, and since effroi hasn't published a distribution, likely with karma-effroi.

Usage

var effroiAsPromised = require('effroi-as-promised')(effroi);
effroiAsPromised.click($('.something'))
    .then(function(){ return effroiAsPromised.click($('.else'))})
    .then(function(){ return effroiAsPromised.click($('.again'))});

Readme

Keywords

Package Sidebar

Install

npm i effroi-as-promised

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • pcwinters