polling-wait

0.1.1 • Public • Published

polling-wait Build Status

A PollingWait function or promise to ease asynchronous testing.

Getting Started

Install the module with: npm install polling-wait

var wait = require('polling-wait').wait;
wait({timeoutAfter: 1000, pollEvery: 100}).until(function () {
    var actual = client.receiveNextMessage();
    assert(actual, 'No message received!');
});

Documentation

(Coming soon)

Examples

(Coming soon)

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.

Release History

(Nothing yet)

License

Copyright (c) 2015 Benoît Nouyrigat
Licensed under the MIT license.

Readme

Keywords

none

Package Sidebar

Install

npm i polling-wait

Weekly Downloads

1

Version

0.1.1

License

none

Last publish

Collaborators

  • bnouyrigat